Re:FizzleFade
by krzat on Tuesday August 29, 2017 @08:56AM
(#15123929)
Why not `x / 16`?
[ Parent
| on HN ]
Integer division will give a rounded result instead of floor
I think they're going for the ceiling here, not the floor. Truncation of positive values should be the same as a floor function.
Yes, I wrote the example. Then realized it was different and corrected only half of it.
Not in C..?
(x + 15) / 16