[R] round number

Alfredo Alessandrini alfreale74 at gmail.com
Sat Mar 26 19:05:40 CET 2011


Hi,

> a <- 4

> a*0.2
[1] 0.8

ok!!

Is there a method to obtain this:

> a*0.2
[1] 0.80

I need to round the number also with the zero.



Thanks in advance,

Alfredo



More information about the R-help mailing list