in reply to Re^4: eq vs ==
in thread eq vs ==

I did a semester in computer science, and we only learned about floating point arithmetics, not about error propagations. But of course that can vary with country, university and course.

Replies are listed 'Best First'.
Re^6: eq vs ==
by LanX (Saint) on Nov 10, 2009 at 17:04 UTC
    Indeed, numerical math was only my second and third semester... =)

    (maybe technical universities are different... )

    For me worst case of error propagation is reason enough to avoid floating point calculations for "disguised" integers, whenever possible.

    And that's nearly always the case if people start to worry about "strange errors", e.g. when calculating cents as fractals fractions ¹...

    Cheers Rolf

    (1) for JadeNB an amusing typo! 8)