2.8.1
API changes:
format()
: now has asignDisplay
option, which allows to control how to display the sign for the number. It follows the same rules as theIntl.NumberFormat()
signDisplay
option.
Bug fixes:
- Fixes an issue with the
format()
function where the sign was missing from negative numbers with a whole part equal to 0.
Internal changes:
formatSign()
: (internal) returns a number sign.toParts()
: (internal) the whole part is now always positive. This is to make its behavior consistent: before this change, the sign was only removed when the value of the whole part was 0.