mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge Koldavi's 'fix-to_str' into maint.
This commit is contained in:
commit
fc848ec3c3
@ -52,7 +52,7 @@ def to_string_with_decimal_point_placed(number: GncNumeric):
|
||||
if len(nominator) <= point_place: # prepending zeros if the nominator is too short
|
||||
nominator = '0' * (point_place - len(nominator)) + nominator
|
||||
|
||||
return '.'.join([nominator[:-point_place - 1], nominator[-point_place:]])
|
||||
return '.'.join([nominator[:-point_place], nominator[-point_place:]])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user