Re: [R] Question about R mantissa and number of bits

2011-11-08 Thread Nordlund, Dan (DSHS/RDA)
g > Subject: [R] Question about R mantissa and number of bits > > Dear all, > > I think that every number x in R can be represented in floating point > arithmetic as: > x = (-1)^s (1+f) 2^(e-1023) > where s is coded on 1 bit, e (positive integer) is coded on 11 bits, > and >

[R] Question about R mantissa and number of bits

2011-11-08 Thread Lafaye de Micheaux
Dear all, I think that every number x in R can be represented in floating point arithmetic as: x = (-1)^s (1+f) 2^(e-1023) where s is coded on 1 bit, e (positive integer) is coded on 11 bits, and f (real in [0,1)) is coded on 52 bits. Am I right? We have f=\sum_{i=1}^{52} k_i 2^{-i} for some