Re:The trouble with 'floor' and 'ceil'
by mchahn on Wednesday January 06, 2016 @12:34AM
(#10848823)
Why not round everywhere? Wouldn't this resolve the issue?
[ Parent
| on HN ]
Re:The trouble with 'floor' and 'ceil'
by mortoray on Thursday January 07, 2016 @02:31AM
(#10856535)
Rounding to the nearest value does avoid the problem I had in the article. But we really wanted to `ceil` in this case, to guarantee an element is never smaller than a provided value (and doesn't end up as 0 size).