in reply to Re: finding multiples of two values
in thread finding multiples of two values

1.2e40 is an integer as well, and does contain a dot in stringified form.

Replies are listed 'Best First'.
Re^3: finding multiples of two values
by Sewi (Friar) on Sep 01, 2009 at 12:06 UTC
    The . - test is ok for beginners who are doing their first programming steps, but I agree that it isn't good for productional software.
    Besides the module way, I prefer the $X == int($X) - which also works for 1.2e40