Questions tagged [inexact-arithmetic]

16 questions
-2
votes
1 answer

Is it possible to predict when Perl's decimal/float math will be wrong?

In one respect, I understand that Perl's floats are inexact binary representations, which causes Perl's math to sometimes be wrong. What I don't understand, is why sometimes these floats seem to give exact answers, and other times, not. Is it…
schulwitz
  • 1,651
  • 1
  • 13
  • 19
1
2