Merge branch 'maint'

This commit is contained in:
Christopher Lam
2023-01-30 09:56:13 +08:00
11 changed files with 191 additions and 179 deletions

View File

@@ -1826,7 +1826,7 @@ def gnc_numeric_from_decimal(decimal_value):
TEN = int(Decimal(0).radix()) # this is always 10
numerator_place_value = 1
# add each digit to the final value multiplied by the place value
# from least significant to most sigificant
# from least significant to most significant
for i in range(len(digits)-1,-1,-1):
numerator += digits[i] * numerator_place_value
numerator_place_value *= TEN

View File

@@ -66,7 +66,7 @@ def gnc_numeric_from_decimal(decimal_value):
TEN = int(Decimal(0).radix()) # this is always 10
numerator_place_value = 1
# add each digit to the final value multiplied by the place value
# from least significant to most sigificant
# from least significant to most significant
for i in range(len(digits)-1,-1,-1):
numerator += digits[i] * numerator_place_value
numerator_place_value *= TEN