in reply to Re^2: How to determine whether a number has a decimal component?
in thread How to determine whether a number has a decimal component?

If by "something truly dumb" you mean "equalness might fail due to rounding issues"

that ain't Perl, it's a function of performing "real" arithmetic using finite precision and is unavoidable (most numbers can't be represented using finite precision).

Why the down votes? I don't know, but it may be people are assuming you didn't read Why do floating point numeric equality/inequality tests fail mysteriously? and the material linked from that node and said something "truly dumb" in consequence. ;)


Perl's payment curve coincides with its learning curve.
  • Comment on Re^3: How to determine whether a number has a decimal component?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.