HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Rounding Decimals in JavaScript | Hacker News Reader
Rounding Decimals in JavaScript
jacklmoore.com
2 points
·
jackmoore
·
·
1 comment
Open article
Save
View on HN
al2o3cr
·
Sup dawg, we heard you liked strings and floating-point arithmetic so we made it so the only way you can correctly round a float in JS is by using string arithmetic.
facepalm
Reply on news.ycombinator.com