Open gcastre opened 9 years ago
By using maximumFractionDigits: 21
, the biggest value. Does that help? Would you make any improvements at https://github.com/jquery/globalize/blob/master/doc/api/number/number-formatter.md in order to make this information clear?
Ok, thank you for the quick response. I thought there might be a way to do this without setting an arbitrary value.
Rounding is kinda enforced by CLDR patterns (the 0
s and #
s, spec) and no Globalize option disables it, instead it controls its length.
Technically it would be easy not to round (needs change at https://github.com/jquery/globalize/blob/master/src/number/format/integer-fraction-digits.js) and I am open to listen for proposals. But, note the same behavior is also found on Ecma-402.
Hello,
I have an issue with the number and currency formatter. I have some numbers that can have many decimal digits (from 2 to 5 (and maybe even more in the future)).
How can I tell the formatter that I only want the number formatted without touching the decimal digits ?
Ex: