bcmyers / num-format

A Rust crate for producing string representations of numbers, formatted according to international standards
Apache License 2.0
123 stars 22 forks source link

Support floating point numbers #1

Open bcmyers opened 5 years ago

bcmyers commented 5 years ago

Random collection of reading material on topic...

nlam1170 commented 4 years ago

@bcmyers any update on the timeline for float support?

jmsunseri commented 1 year ago

kinda making me sad this isn't better by now given all the popularity of the crate.

enomado commented 1 year ago

Dont waste time to get this library work for floats with hacks like fract() / trunk() and (x * 1000).round() / 1000 and copysign etc etc.

I'll try this https://docs.rs/format_num/latest/format_num/ instead

azzamsa commented 1 year ago

@enomado any luck with format_num? I am also looking for solution that works with f64.

enomado commented 1 year ago

@azzamsa looks like I came to thousands crate.

Standard float format, then separate digits as chars.