mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Add a coment to GRASS logic
This commit is contained in:
parent
d3434fbfc9
commit
7c94e1f228
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user