[R] 64 bit R double precision

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu May 7 19:55:47 CEST 2009


Paul Emberson wrote:
> Hi,
> 
> If R is compiled for a 64 bit platform, does the double data type make 
> use of the additional precision or is it set at a fixed length?

No. Double is double, 64 bits, although sometimes 80 bits when things 
are kept in registers. However, even though the FPU is identical between 
64 and 32 bit machines, you do not in general get the same results, due 
to tricks played by optimizing compilers.

-- 
    O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907




More information about the R-help mailing list