[EMAIL PROTECTED] (Carl R. Witty) writes:

> Fergus that this behavior is undesirable and should be avoided for
> Haskell, unless a flag like "-funsafe-fast-math" is provided.
> 
> double inverse(double val) {
>   if (val == 0) {
>     printf("Oops!  divided by zero\n");
>     abort();
>   } else {
>     return 1/val;
>   }

Do you mean "val == 0.0" and "1.0/val"?

Cheers,
Julian.

Reply via email to