Open frank-rollpin opened 7 years ago
At the moment, scientific pattern is practically useless, as it takes into account only the firsts significant digit. It would be great to be able to specify the exact number of significant digits to use.
print(new intl.NumberFormat.scientificPattern().format(0.1234)); output: 1E-1
print(new intl.NumberFormat.scientificPattern().format(0.1234));
I have encountered with this as well. @frank-rollpin Did you find any alternative?
As far as I can tell, there is no support for this feature at the moment.
At the moment, scientific pattern is practically useless, as it takes into account only the firsts significant digit. It would be great to be able to specify the exact number of significant digits to use.
print(new intl.NumberFormat.scientificPattern().format(0.1234));
output: 1E-1