Skip to content
Prev 273859 / 398506 Next

round() and negative digits

On 09-Oct-11 00:46:58, Carl Witthoft wrote:
Nor should one forget the rounding rules (not OS-dependent
in this case, I think ... ?):

  round(5000,-4)
  # [1] 0
  round(15000,-4)
  # [1] 20000

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.harding at wlandres.net>
Fax-to-email: +44 (0)870 094 0861
Date: 09-Oct-11                                       Time: 08:59:58
------------------------------ XFMail ------------------------------