The trouble with `floor` and `ceil` floor and ceil have the bad habit of producing unexpected results. They aren’t broken, but in light of floating point nasties can often result in
Essential facts about floating point calculations Floating point numbers are everywhere. It’s hard to find software that doesn’t use any. For something so essential to writing software you’d think we take
Quelling the floating point demon in my line rendering code A floating point demon had attacked my rendering code. Instead of drawing a nice straight line I’d get a devil’s tail flurried with barbs. It