At 09:58 97/05/09, Yousry Abdallah wrote:
>Try the following expression:
>
>? 0.4 > 1.0 - 0.6
>True

  The Hugs 1.4 Version 970410 I compiled for Mac says that
    Prelude> (1.0 - 0.6)
    0.400000191
and also
    Prelude> (1.0::Double) - (0.6::Double)
    0.400000191
so evidently, it computes 4 byte IEEE flots, and you get a roundoff error here.

  Is there a way to force Hugs using doubles?

  Hans Aberg



  • Bug Yousry Abdallah
    • Hans Aberg

Reply via email to