0

Im trying to figure why the number 1 + 2.0^-24 in single arithmetic precision is stored as 1.0 instead of 1 + 2^-23 since we can check that 1 + 2.0^-24 - 1 + 2^-23 = 2^-24 and 1.0 + 2.0^-24 - 1.0 = 2^-24 and 1.0 and 1.0 + 2^-23 are two closet numbers to 1.0+2^-24. Why is the computer choosing 1.0 ?

ardila
  • 1,277
  • 1
  • 13
  • 24
whd
  • 1,819
  • 1
  • 21
  • 52

0 Answers0