num-format icon indicating copy to clipboard operation
num-format copied to clipboard

Support floating point numbers

Open bcmyers opened this issue 5 years ago • 6 comments

bcmyers avatar Jan 31 '19 00:01 bcmyers

Random collection of reading material on topic...

  • https://github.com/rust-lang/rust/issues/24556
  • https://github.com/dtolnay/dtoa
  • https://github.com/lifthrasiir/rust-strconv/
  • https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf

bcmyers avatar Feb 28 '19 16:02 bcmyers

@bcmyers any update on the timeline for float support?

nlam1170 avatar Jul 18 '20 15:07 nlam1170

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

jmsunseri avatar Mar 02 '23 01:03 jmsunseri

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

enomado avatar Mar 07 '23 21:03 enomado

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

azzamsa avatar Sep 10 '23 22:09 azzamsa

@azzamsa looks like I came to thousands crate.

Standard float format, then separate digits as chars.

enomado avatar Sep 11 '23 10:09 enomado