On Tue, May 31, 2005 at 07:20:49PM +0200, Vincent Lefevre wrote: > On 2005-05-31 17:10:58 +0200, Andreas Schwab wrote: > > Scott Robert Ladd <[EMAIL PROTECTED]> writes: > > > "Portability" means different things to different people. There's a > > > difference between source code portability and "result" portability. > > > > But making round to double the default makes it only worse in this case, > > since there is no portable way to change the rounding precision. > > No, if the goal is to be portable with various platforms, you need > to round to double by default, since single precision (almost no > longer used for FP computations) and double precision are the only > standard precisions in IEEE 754.
IEEE 754 is not mandated by the ISO C{90,99} standards and there are indeed platforms where float and double are not using IEEE 754 single resp. double precision formats. Jakub