Re: [Rd] rounding change

2020-03-11 Thread Hervé Pagès
Thanks for the heads up. The new result for round(51/80, digits=3) is also consistent with sprintf("%.3f", 51/80), format(51/80, digits=3), print(51/80, digits=3), and with the sprintf() function in C. Which is somehow satisfying. H. On 3/5/20 05:54, Therneau, Terry M., Ph.D. via R-devel

[Rd] rounding change

2020-03-05 Thread Therneau, Terry M., Ph.D. via R-devel
This is a small heads up for package maintainers.   Under the more recent R-devel, R CMD check turned up some changes in the *.out files.   The simple demonstration is to type  "round(51/80, 3)", which gives .638 under the old and .637 under the new.   (One of my coxph test cases has a