Re: FLOAT PRECISSION

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
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).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.