I'm working on a homework problem that requires me to do some floating point operations to illustrate the possible problems in assuming that floating point numbers are always completely accurate. I have the quoted program written and have managed to prove to myself that OS X does not use IEEE 754 floating point format. What format does it use? Also in the second while loop, the printf lines end up differing in their output [also quoted] despite being mathematically equivalent. Any ideas why?