👋Hi @ericlagergren — we've noticed a small edge case in the f format flag. It looks like this will be also fixed in https://github.com/ericlagergren/decimal/pull/144 but I figured I would report it anyway and propose a small change for the existing version if that one is still WIP.
Previously we would take only precision without also considering the
exponent, meaning you would have scenarios like 200 being formatted with
%.2f as just 200 as x.exp would be 2, and x.Precision() would be 1.
👋Hi @ericlagergren — we've noticed a small edge case in the
f
format flag. It looks like this will be also fixed in https://github.com/ericlagergren/decimal/pull/144 but I figured I would report it anyway and propose a small change for the existing version if that one is still WIP.Previously we would take only precision without also considering the exponent, meaning you would have scenarios like 200 being formatted with
%.2f
as just200
asx.exp
would be 2, andx.Precision()
would be 1.