[comp.lang.c] float vs. double

reg@lti.UUCP (Rick Genter x18) (08/10/88)

I understand that dpANS C requires that sizeof (float) <= sizeof (double).
However, does it state anywhere that a double should provide greater *precision*
than a float, or for that matter that casting a float to a double (or vice versa)
shouldn't raise a hardware exception?  I can envision a situation where
sizeof (float) == sizeof (double), the difference being that floats trade off
mantissa bits for exponent bits.  I believe the VAX architecture provides
this.

                                        - reg