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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -