Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Rounding Decimals in JavaScript (jacklmoore.com)
2 points by jackmoore on March 1, 2014 | hide | past | favorite | 1 comment


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: