Add a coment to GRASS logic

This commit is contained in:
Loïc Bartoletti 2022-09-26 09:35:57 +02:00 committed by GitHub
parent d3434fbfc9
commit 7c94e1f228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,7 @@ def processOutputs(alg, parameters, context, feedback):
based on provided number and number of decimals
"""
number += 0.0001
# adapted from GRASS https://github.com/OSGeo/grass/blob/6253da1bd6ce48d23419e99e8b503edf46178490/lib/gis/basename.c#L97-L101
if nDecimals == 0:
return f'{int(number):03}'
int_part = int(number)