[Cfp-interest] roundTiesToEven with two odd results

Fred J. Tydeman tydeman at tybor.com
Mon Jan 8 10:29:02 PST 2018


Printing the value 0.95 with one digit will be either.9 or 1. depending upon rounding.
Now, both of those are odd numbers.  So, it is hard to do roundTiesToEven for this case.
754 4.3.1 now covers this case by requiring that the result be 1.

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