Floating-Point Tricks
July–August 1997
“Oh, you work with computers? Gee, I can't even balance my checking account!”
Don't you just love it when some friend comes up with this one? So much of what we do with computers has nothing to do with arithmetic. Word processing, painting, stuff that even mathphobes can appreciate. But in the rendering game there's no substitute for nice juicy numbers. And what kinds of numbers are they?
There are basically two popular numeric types inside a computer, floating point and fixed point (which I have sometimes referred to as scaled integers). In my career of number crunching, I've oscillated back and ...
Get Jim Blinn's Corner: Notation, Notation, Notation now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.