Y
Hacker News
new
|
ask
|
show
|
jobs
by
Armisael16
2490 days ago
How does truncating a positive number ever round up?
1 comments
NohatCoder
2490 days ago
Add 0.5 before rounding towards negative infinity, and you'll get standard rounding.
link