[R] Trailing zero's missing from signif function ?

Paul paul at paulhurley.co.uk
Thu May 20 21:58:15 CEST 2010


Hello.

In my opinion the function

signif(1.4,digits=3)

should give 1.40

but actually gives 1.4.  Is there a magic way to add the trailing digits 
back (and converting to chracter at the same time ?)

Regards,

Paul.



More information about the R-help mailing list