[Courses] [C Doubt]
Daniel.
cristofd at hevanet.com
Wed Oct 9 16:22:27 EST 2002
>On my computer, a double is 64 bits[1], so the exponent is 11 bits and
>the fraction (mantissa without the first bit) is 52 bits (1 sign + 11
>exponent + 52 fraction = 64).
So the first integer that can't be stored exactly would be (in binary)
10000000....0000001, where there are 52 zeroes? The range for storing
integers then goes from 1 up to 2^53, and from -1 to -(2^53)? (No way
to store a 0?)
-Daniel.
--
() ASCII ribbon campaign
/\ against HTML mail
More information about the Courses
mailing list