dtolnay / ryu

Fast floating point to string conversion
Apache License 2.0
606 stars 27 forks source link

Is it possible to printout float without scientific notation? #14

Closed serzhiio closed 4 years ago

serzhiio commented 5 years ago

subj

plokhotnyuk commented 5 years ago

Currently, this repo has no option for that, while there are some versions of the Ryu algorithm which implement such kind of plain formatting and use it internally for some range of exponents, usually from -3 to 6 inclusive:

dtolnay commented 5 years ago

Yes, the algorithm is good for this. You would need to plug in your own alternative to this code which is what converts from mantissa/exponent to scientific notation.

loyd commented 2 years ago

Any chance to have it built in?

dtolnay commented 1 year ago

I am not interested in having it built in.