[cvs-nhc98] cvs commit: nhc98/src/prelude/Prelude
Floating_Double.hs Floating_Float.hs
Malcolm Wallace
malcolm at haskell.org
Tue Oct 5 14:54:17 EDT 2004
malcolm 2004/10/05 11:54:17 PDT
Modified files:
src/prelude/Prelude Floating_Double.hs Floating_Float.hs
Log:
The default definition of (**) in class Floating loses precision.
In particular, many calculations incorrectly have result NaN.
The fix is to use the C library function pow() instead, and hook
it into nhc98 as a new bytecode instruction.
Revision Changes Path
1.5 +2 -0 nhc98/src/prelude/Prelude/Floating_Double.hs
1.6 +1 -0 nhc98/src/prelude/Prelude/Floating_Float.hs
More information about the Cvs-nhc98
mailing list