Hacker News new | ask | show | jobs
by jasonm23 4891 days ago
You can get decent float parsing by doing Number() casting / regex cleanup, instead of parseFloat(). I don't know how tangle does it though
1 comments

Right, yeah I use this one too for anywhere I need printf a-like formatting in JS.

But isn't this the other side of the coin? Formatting numbers as strings, not parsing strings to floats? (forgive me if I'm off base on this, I'm only looking sideways at this right now.)