r - Keeping trailing zeros -


In R, I want to keep behind zero. For example, if I type

  round (5.2, 3)   

I should output the output to 5.200.

Can you help me

if it is for printing purposes , sprintf is what you are doing later:

  & gt; See  sprintf  for formatting details. "     

Comments