It is not always working though. Is there a standard and tested way to test for a float in Perl?my $var = 2.5; if (int($var) != $var) { print "Is a float\n"; }
In reply to dependable way to test for a float by vindaloo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |