Skip to content

Commit

Permalink
Add a coment to GRASS logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Dec 20, 2022
1 parent 49244a8 commit fa2edbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/grassprovider/ext/r_horizon.py
Expand Up @@ -52,6 +52,7 @@ def doubleToBaseName(number, nDecimals):
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)
Expand Down

0 comments on commit fa2edbb

Please sign in to comment.