A rather obscure FP question.

uunet!netcom.com!segfault!rfg uunet!netcom.com!segfault!rfg
Mon Mar 8 17:45:50 PST 1993


Both the ANSI C standard and the NCEG's "Floating-Point C Extensions"
document make it abundantly clear that an implementation is allowed
to evaluate a given FP expression using some FP format which actually
provides *more* precision and/or range than the format normally associated
with the apparent data type of the expression.

Thus, given two type `double' variables `d1' and `d2' the expression:

			d1 * d2

may be carried out in an FP format normally associated with type `long double'.

That's all well and good, but I have a question.  In light of the above facts,
what value must a standard conforming implementation yield for:

		sizeof (d1 * d2)

???


// Ronald F. Guilmette
//    domain address:	rfgasegfault.uucp
//    uucp address:	...!uunet!netcom.com!segfault!rfg



More information about the Numeric-interest mailing list