FLOAT PRECISSION

Ross Paterson ross at soi.city.ac.uk
Mon Dec 15 07:51:08 EST 2003


On Mon, Dec 15, 2003 at 03:47:22PM +1100, mike V wrote:
> What is the precission with which floating point operations are performed ?
> The following example shows an incorrect answer in the second case ?
> How can this problem be addressed i.e. the apparent precission seems to be 
> a sevre limitation to any scientific computation ?
> 
> Prelude> 1000.11 - 0.1
> 1000.01
> Prelude> 10000.11 - 0.1
> 10000.0

Hugs used to represent both Float and Double as float, but the Nov 2003
release uses float and double respectively (on most architectures).


More information about the Hugs-Bugs mailing list