Removing trailing zero not working if "dec" is not set
FabienGiely opened this issue · 2 comments
FabienGiely commented
In the helper.number fonction, if "dec" is not set, remove_trailing_zero option is not working
FabienGiely commented
The problem only exist if numbers are in decimal format.
FabienGiely commented
There are no ways to know the "true" decimals of a number,
For example :
print(Decimal(1.12))
>>1.12000000000000010658141036401502788066864013671875
One option is, when "dec" is not set, to have a default dec value