HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by sheldor | Hacker News Reader
Parent
Full thread
sheldor
·
Integer division will give a rounded result instead of floor
View on HN
sp332
·
I think they're going for the ceiling here, not the floor. Truncation of positive values should be the same as a floor function.
kutkloon7
·
Yes, I wrote the example. Then realized it was different and corrected only half of it.
jskkk
·
Not in C..?
thechao
·
(x + 15) / 16
Reply on news.ycombinator.com