Am Mittwoch 24 Juni 2009 21:05:50 schrieb Thomas Davie:
> This looks like Hugs defaulting to a different type to ghci,
> specifically, Hugs is defaulting to one of the high precission types
> like CReal or Rational, while ghci is defaulting to Float or Double.
>
> Bob

No, hugs is displaying with fewer digits of precision, so the round for display 
gives 
0.x000000 which is abbreviated to 0.x, ghci displays with more digits, so the 
floating 
point inexactness shows in the last digit.

Prelude> sin 2
0.9092974268256817
Hugs> sin 2
0.909297426825682
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to