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
- Re: Precision problem Fergus Henderson
- Re: Precision problem George Russell
- Re: Precision problem Fergus Henderson
- Re: Precision problem Carl R. Witty
- Re: Precision problem Marcin 'Qrczak' Kowalczyk
- Re: Precision problem Julian Assange
- Re: Precision problem George Russell
- Re: Precision problem Julian Assange
- Re: Precision problem Ralf Muschall
- Re: Precision problem Julian Assange
- Re: Precision problem Lennart Augustsson
- Re: Precision problem Fergus Henderson
- Re: Precision problem Julian Assange
- Re: Precision problem Fergus Henderson
