3 ms·
> Formatting floating points as strings with maximum precision, for example. That’s not hard to do[1]—rather, it’s hard to do fast (that is, without treating y
by mananaysiempre 2y ago
> Formatting floating points as strings with maximum precision, for example.
That’s not hard to do[1]—rather, it’s hard to do fast (that is, without treating your CPU as a fast 8-bitter, which it sucks at being, comparatively speaking). The other direction is surprisingly difficult, though[2].
[1] https://research.swtch.com/ftoa https://research.swtch.com/ftoa
[2] https://dl.acm.org/doi/10.1145/3296979.3192369 https://dl.acm.org/doi/10.1145/3296979.3192369