dtolnay / ryu

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

Feature request: Expose some of the properties calculated about the float pre-output #54

Open rscarson opened 9 months ago

rscarson commented 9 months ago

For example around here You calculate the length of the resulting decimal portion of the string

That is the specific number I am after; at the moment I am having to split the string and grab the length of the decimal portion

Some method on ryu::Float which exposes this property without needing to construct an entire string would be nice