
How Integers and Floats Work, Wizard Zines by Julia Evans
4294967295 + 1 = 0! 0.1 + 0.2 = 0.30000000000000004! -2 in binary is 11111110! And what’s all this jargon? Unsigned integer? Little endian? Hexadecimal? This zine will explain the jargon, why floating point math is so weird (and why a little weirdness is inevitable), how integers and floats are represented in memory, exactly how floating numbers work, down to the binary representation and some alternatives to floating point.