Hi Alfredo,

Try

noquote(sprintf("%.2f", a*.2))

HTH,
Jorge


On Sat, Mar 26, 2011 at 2:05 PM, Alfredo Alessandrini <> wrote:

> 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
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

