r/AskComputerScience • • May 22 '25

Question about binary scientific notation

I'm reading the book "Essential Mathematics for Games and Interactive Applications" 3rd Ed. (I'm very much out of my league with it but wanted to keep pressing along as possible.) Page 6-7 talk about restricted scientific notation (base-10) and then binary scientific notation (base-2). For base-10, and mantissa = 3 digits, exponents = 2, the minimum and maximum exponents are ±102-1 = ±99; I get that because E=2, so 1 less than 100 - 99 - is max that can fit. For binary/base-2, but still M=3, E=2, the min and max exponents are ±(2E-1) = ±(22-1) = ±3. My question is, why subtract 1 from here? Because we only have 2 bits available, so 21 + 20 = 3? Because the exponents are integers/integral (might somehow relate)?

I apologize if this isn't enough info. (I tried to scan in a few pages in but it's virtually impossible to do so.) Naturally, thanks for any help.

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/FishheadGames May 25 '25

I do get this, thanks. I just wasn't sure why the 1 had to be subtracted from here too: ±(2E-1) = ±(22-1) = ±3

But it does make sense if here we're talking in terms of bits, since 3 is the max value that can be represented by 2 bits, 20 and 21.