Hacker News new | ask | show | jobs
by Armisael16 2490 days ago
How does truncating a positive number ever round up?
1 comments

Add 0.5 before rounding towards negative infinity, and you'll get standard rounding.