Open younies opened 2 years ago
Discuss with:
Optional:
Consensus: add Infinity and -Infinity to the FixedDecimal data model. Support it when reading from f32, f64, and strings (the string value is "Infinity" and "-Infinity"). Support infinity in FixedDecimalFormatter as a replacement for the #
in the pattern, producing outputs such as "$∞K". When a FixedDecimal operation overflows into infinity, have a debug assertion.
LGTM: @younies @Manishearth @skius @eggrobin @sffc
when a user call
multiply_pow10
inFixedDecimal
and an overflow happen, what shall we do:12345
and the user calledmultiply_pow10
byi16::MAX -3
, the resulted number will be34500000000......