Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Rounding Decimals in JavaScript
(
jacklmoore.com
)
2 points
by
jackmoore
on March 1, 2014
|
hide
|
past
|
favorite
|
1 comment
al2o3cr
on March 1, 2014
[–]
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:
facepalm