in reply to Re: using int and the range function
in thread using int and the range function
I think this is closest to the OP's intent, because it also detects if the number doesn't fit into an "integer".
But I'd change the if condition tobecause for humans that's easier to parse than... if $input eq int $input;
... if int $input eq $input;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using int and the range function
by Laurent_R (Canon) on Jan 16, 2015 at 07:49 UTC |