[Cfp-interest 2501] encode*() and invalid DFP data
Fred J. Tydeman
tydeman at tybor.com
Thu Aug 4 09:46:05 PDT 2022
What are the encode*() functions [7.12.16.*] supposed to do with
invalid DFP data?
Undefined behaviour?
Treat them as NaN?
I assume that there are bit patterns that are invalid DFP.
Would it be better to have those functions return an int to
indicate success or invalid data?
---
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