stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

Improve `float.to_string` for javascript

Open malbarbo opened this issue 1 year ago • 0 comments
trafficstars

Improve float.to_string to handle exponentials properly. Also address https://github.com/gleam-lang/stdlib/issues/694.

Before this PR float.to_string(1.0e123) would output 1e+123.0 and had another issues.

malbarbo avatar Oct 18 '24 23:10 malbarbo