[cvs-nhc98] patch applied (hat): The default definition of (**) in class Floating loses precision.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:29:18 EDT 2006


Tue Oct  5 11:54:14 PDT 2004  malcolm
  * 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.

    M ./src/compiler98/GcodeLow.hs +1
    M ./src/compiler98/Prim.hs +2
    M ./src/compiler98/PrimCode.hs +2


More information about the Cvs-nhc98 mailing list