[Cfp-interest 1646] Re: C++ floating-point work

Fred J. Tydeman tydeman at tybor.com
Wed Jun 17 08:01:16 PDT 2020


On Wed, 17 Jun 2020 14:41:35 +0000 David Olsen wrote:
>
>Do decimal floating-point types have representations for infinity and NaN?

Yes.

>What does the C standard have to say about conversions between binary and decimal arithmetic types?  If I remember correctly, the usual arithmetic conversions don't allow them to be mixed during arithmetic, saying it is undefined behavior. 

Correct.

>Are there implicit conversions from binary to decimal and vice versa in other contexts?

Assignment, function call and return.



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