Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Armisael16
6y ago
0 comments
Save
Share
How does truncating a positive number ever round up?
0 comments
1 comments · 1 top-level
top
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