[R] number of decimal places in a number?

Petr Savicky savicky at cs.cas.cz
Sun Jul 8 21:34:12 CEST 2012

On Sun, Jul 08, 2012 at 11:39:22AM -0700, arun wrote:
> Hi Petr,
> I think sprintf and formatC are identical as it can round >22 decimal places as opposed to print and signif
> print(pi,digits=35)

Hi Arun:

Thank you for pointing this out. Funtion formatC()
is easier to use and uses the same C level function
as sprintf().


More information about the R-help mailing list