Numbers for Real (signed ints, overflow, floating point)
Numbers for Real · Open board
A byte’s worth of switches, and the three sharp edges hiding inside it: a biggest number it can hold, a trick it needs to fake a negative one, and a limit on how exactly it can write a fraction.
Before you start. You need what Everything Is a Number (bits & bytes) gave you: a computer stores everything as a fixed row of on-or-off switches, bits, and eight of them make a byte, which holds exactly 256 different patterns. This lesson is about what happens right at the edge of that fixed row, when a count needs a 257th pattern, or a fraction needs more precision than the row has room for.
Lesson 2 of 41 in How Computers Work · Free with an account
Keep reading. It's free.
A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.
No card, and chalk sends no email. Google sign-in only.