[Cfp-interest 1372] Re: SNANF

Jim Thomas jaswthomas at sbcglobal.net
Wed Aug 14 10:56:01 PDT 2019


[+/-]SNANF isn’t subject to the usual arithmetic conversions and isn’t a floating constant, so it’s evaluation format is float, regardless of FLT_EVAL_METHOD.

- Jim Thomas

> On Jul 29, 2019, at 8:10 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> If FLT_EVAL_METHOD is 1, then is the format of a SNANF macro 
> a float or a double?  If it is a double, then it seems to me that
>  float f = SNANF;
> would trigger the SNaN.
> 
> ---
> 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