15 Dec
2003
15 Dec
'03
7:51 a.m.
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).