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

If you do numerics, you should inform yourself in more detail about floating point arithmetics and error propagation (a standard subject in applied mathematics).

Moritz it's first year computer science...

Cheers Rolf

Replies are listed 'Best First'.
Re^5: eq vs ==
by moritz (Cardinal) on Nov 10, 2009 at 15:28 UTC
    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.
      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)