[Cfp-interest] DFP: issue 3
Fred J. Tydeman
tydeman at tybor.com
Tue Dec 4 17:25:15 PST 2012
Issue 3 in the DFP TS (PDF page 27) could have another wording:
If the type of the formal parameter /value/ is decimal floating,
the exponent is an integral power of 10, otherwise 2.
That covers the cases:
frexpf( 100.DF, &intexp )
frexpd32( 100.f, &intexp )
frexpf( 1, &intexp )
frexpd32( 1, &intexp )
Similar wording would apply to:
ldexp
logb
scalbn
scalbln
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (775) 287-5904 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