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

gus1201 at optimizelife.com gus1201 at optimizelife.com
Fri Nov 20 03:45:12 CET 2009


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".



More information about the R-devel mailing list