Julian Assange wrote:

> [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"?

That's the same as he wrote (unless C has changed since I last studied it).

--

        -- Lennart




Reply via email to