[R] precision in operations

Marc Schwartz MSchwartz at medanalytics.com
Fri Nov 7 14:43:40 CET 2003


On Fri, 2003-11-07 at 04:40, Jason Turner wrote:
> javier garcia - CEBAS wrote:
> 
> > Hi all;
> > could you remind me what is the function to change the precision of the 
> > operations done in R? I can't remember nor find it.
> > 
> 
> There isn't one.  R does all its calculations with system defined 
> double-precision or integers (on most platforms where R is used, these 
> are both 32 bits).  See help(is.single)
> 
> Are you thinking of format(...,digits=n) ?  This only affects display 
> (i.e. printing).
> 
> Cheers
> 
> Jason


These are also global settings, options("digits") and options("sicpen"),
which influence the formatting of output (but not internal
representation or precision). The latter is new for R 1.8.0.

See ?options for more information.

HTH,

Marc Schwartz




More information about the R-help mailing list