Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
Armisael16
6y ago
0 comments
Share
How does truncating a positive number ever round up?
undefined | Better HN
0 comments
default
newest
oldest
NohatCoder
6y ago
Add 0.5 before rounding towards negative infinity, and you'll get standard rounding.
2 more replies
j
/
k
navigate · click thread line to collapse