[R] Machine accurancy.

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Jun 11 17:32:24 CEST 2002

Kenneth Cabrera <krcabrer at perseus.unalmed.edu.co> writes:

> >Why do you want to do this?  R's precision is quite sufficient for almost
> >all scientific purposes, if used correctly.
> >
> integer.max              2147483647
> I just want to use a bigger integer limit number for specific integer
> process.

Actually, FPUs handle integers up to the mantissa size exactly, at
least on Intel, so you can store integers up to 9007199254740992
(==2^53) just by keeping them in double variables.

You'll have to keep track of overflow and truncation issues yourself

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list