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 concordance of exactly 51/80).
In this particular case 51/80 is exactly .63750000, but that value does not have an exact
representation in base 2. The line below would argue that the new version is correct, at
least with respect to the internal representation.
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
On 3/5/20 05:54, Therneau, Terry M., Ph.D. via R-devel wrote: