It seems like the contract of int() should always return an integer, or maybe undef. Inf and NaN ought to give warnings at least.use warnings; say int(1e400); # "Inf\n"
In reply to Re^2: Weird behavior of int()
by NERDVANA
in thread Weird behavior of int()
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |