[R] Re: Several Basic Questions

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed May 21 17:29:22 CEST 2003


Garrett (as you seem to prefer to address people as if they are your servants)

?format tells you about `digits'.  RTFM.

And yes, it has been sorted out long ago.

Professor Ripley


On Wed, 21 May 2003 Jim_Garrett at bd.com wrote:

> I get the digest, so apologies if this has already been sorted out.
>
> Perhaps there is some platform dependence to this?  Following Ripley's
> suggestion, I still get what Mingua got:
>
> > x <- 1134567.1
> > y <- 0.19
> > z <- x - y
> > version
>          _
> platform i386-pc-mingw32
> arch     i386
> os       mingw32
> system   i386, mingw32
> status
> major    1
> minor    7.0
> year     2003
> month    04
> day      16
> language R
> > win.version()
> [1] "Windows 2000 Professional (build 2195) Service Pack 2.0"
> > cat(format(round(z, 2)), "\n")
> 1134567
>
>
> **********************************************************************
> This message is intended only for the designated recipient(s).  ... {{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list