[Cfp-interest] roundTiesToEven with two odd results

Jim Thomas jaswthomas at sbcglobal.net
Mon Jan 8 11:44:57 PST 2018


Do we need to change anything to stay in sync with 754?

- Jim Thomas

> On Jan 8, 2018, at 10:29 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> 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.
> 
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest




More information about the Cfp-interest mailing list