[Cfp-interest] roundeven()
Fred J. Tydeman
tydeman at tybor.com
Mon Jan 8 15:13:25 PST 2018
In 18661-1, the description of roundeven() has:
... rounding halfway cases to even (that is, to the nearest value whose least significant bit 0),
I think that should be:
... rounding halfway cases to even (that is, to the nearest value whose least significant integer bit is 0),
Consider roundeven(1.5)
The two choices are 1.0 and 2.0 in double format. Since the fraction of both of those
is 0, the least significant bit of the fraction is 0.
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (702) 608-6093 Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the Cfp-interest
mailing list