Re: excess precision for 'float'

2011-10-10 Thread Ondřej Bílka
Precision of floats is implementation dependant and AFAIR compiler is allowed do float arithmetic at compile time with higher precision than at host machine. What is result when floats are read from standard input? On Sun, Oct 09, 2011 at 12:44:07PM +0200, Bastien ROUCARIES wrote: > On Sun, Oct 9,

Re: excess precision for 'float'

2011-10-09 Thread Bastien ROUCARIES
On Sun, Oct 9, 2011 at 12:31 AM, Bruno Haible wrote: > It is well-known that 'double' computation results on x86 processors can > carry excess precision. Namely, if the value is stored in a floating-point > register (80 bits total, 64 bits mantissa) without passing through a > memory store, it can

excess precision for 'float'

2011-10-08 Thread Bruno Haible
It is well-known that 'double' computation results on x86 processors can carry excess precision. Namely, if the value is stored in a floating-point register (80 bits total, 64 bits mantissa) without passing through a memory store, it can carry excess precision. The two ways to prevent such excess p