How Integers and Floats Work: The Weird Truth about How Your Computer Does Math

id: 1202925 not VIP Open in MaM

By Julia Evans

Language: English

Category: Ebook - Computer/Internet

Categories: Computer/Internet

Size: 13.3 MiB pdf Files: 1

Uploader: zakoo

Uploaded At: 2025-12-02 21:21:12

Programming, Software Development, Software Engineering

Description

The way your computer does math is pretty weird. 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 makes math seem unpredictable, which is very rude because math is the one thing in life that should be predictable.

 

Of course, the way computers do math is predictable — it just plays by slightly different rules than you might expect. And understanding how your computer does math unlocks a lot of things! You’ll:

 


And the way integers and floats are represented isn’t going to change (floating point was standardized in 1985!), so you only have to learn it once.

 

This zine will explain:

 

Other Torrents