in reply to modulus and floating point numbers

I am not sure, but what about?
sub is_subpenny { ($_[0]+0) =~ /\..../; }