precision maps to toLocaleString options minimumFractionDigits and maximumFractionDigits. Both are set with the value from precision.
useSignificantDigitschanges the mapping for precision to toLocaleString options minimumSignificantDigits and maximumSignificantDigits. Both are set with the value from precision.
The plugin should expose these number formatting options directly.
Version 2 of this plugin allows these options:
precision
maps totoLocaleString
optionsminimumFractionDigits
andmaximumFractionDigits
. Both are set with the value fromprecision
.useSignificantDigits
changes the mapping forprecision
totoLocaleString
optionsminimumSignificantDigits
andmaximumSignificantDigits
. Both are set with the value fromprecision
.The plugin should expose these number formatting options directly.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString.