Oct-11-2017, 10:11 AM
First, after you enter a number (in your case 2.3), ip variable is a string, and you can't cast a "float string" to integer.
ip = int(float(ip)) would work.
ip = int(float(ip)) would work.
int() ValueError
|
|
Messages In This Thread |
int() ValueError - by kcunning - Oct-11-2017, 09:41 AM
RE: int() ValueError - by j.crater - Oct-11-2017, 10:11 AM
|