[Rd] rounding the time: significant 0 does not appear (PR#14074)

From: <gus1201_at_optimizelife.com>
Date: Fri, 20 Nov 2009 03:45:12 +0100 (CET)


Full_Name: Gustavo Lacerda
Version: 2.9.1
OS: Windows
Submission from: (NULL) (137.82.157.97)

I obtained 'time' by subtracting the results of two calls to sys.Time().

> round(time,0)

Time difference of 1 mins
> round(time,1)

Time difference of 1 mins
> round(time,2)

Time difference of 1.03 mins
> round(time,3)

Time difference of 1.032 mins

Note that the second command above should return "1.0 mins", rather than "1 min".



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 20 Nov 2009 - 02:54:24 GMT

This archive was generated by hypermail 2.2.0 : Fri 20 Nov 2009 - 05:50:36 GMT