You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var dec1 = Decimal.parse("0.256"); var dec2 = dec1 + dec1; print(dec2.toString()); print(dec2.toStringAsPrecision(20));
prints
I/flutter ( 5329): 0.512
I/flutter ( 5329): 0.51200000000000001066
in the console. I do not think this is correct behaviour for a Decimal type.
The text was updated successfully, but these errors were encountered:
var dec1 = Decimal.parse("0.256"); var dec2 = dec1 + dec1; print(dec2.toString()); print(dec2.toStringAsPrecision(20));
prints
I/flutter ( 5329): 0.512
I/flutter ( 5329): 0.51200000000000001066
in the console. I do not think this is correct behaviour for a Decimal type.
The text was updated successfully, but these errors were encountered: