Bruno Haible <[EMAIL PROTECTED]> writes: > This module assumes that the radix of floating-point numbers is 2. A safe > assumption, I hope, 18 years after IEEE 754.
IBM mainframes use radix 16. This is not likely to change so long as there are IBM mainframes (which will be quite some time). Modern IBM mainframes support radix 2 as an option, but I suspect radix 16 is still the normal default, for historical reasons. So, for example, in SAS C you'll find "#define FLT_RADIX 16". I know of one radix-10 C host: tigcc, a GCC variant for Texas Instrument calculators. It's actively maintained: the latest release was in October. <http://tigcc.ticalc.org/>. This one is more of a curiosity, though. Radix-10 floating point is making a bit of a comeback, by the way. Usually, though, it's not via redefining 'double'. See, for example, <http://www2.hursley.ibm.com/decimal/>.