[Cfp-interest] Wording on frexp
Fred J. Tydeman
tydeman at tybor.com
Wed Nov 28 17:01:46 PST 2012
Consider the following code:
#include <math.h> // Not <tgmath.h>
int expon;
double z1 = frexp( 100.DD, &expon ); // decimal FP arg to generic parameter
_Decimal64 z2 = frexpd64( 100., &expon ); // generic FP arg to decimal parameter
Should the wording talk about
If value is a decimal FP number...
If value is of decimal FP type...
If the parameter value is a decimal FP number...
If the parameter value is of decimal FP type...
The existing wording is not clear to me if it is talking
about the actual argument or the formal parameter.
---
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