dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
64 stars 39 forks source link

Scientific pattern ignores decimal digits #267

Open frank-rollpin opened 7 years ago

frank-rollpin commented 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

davidmartos96 commented 4 years ago

I have encountered with this as well. @frank-rollpin Did you find any alternative?

mosuem commented 2 years ago

As far as I can tell, there is no support for this feature at the moment.