1# try using int(float(x)) as per the example below... Worked for me :)
2int(float('55063.000000'))
3# expected output: 55063.0
1#another way is to check if the entered number isdigit()
2#that way you will ensure unhandled exception incase of erroneus data
3
4number= input("What is your weight:")
5if number.isdigit():
6 kilos=int(float(number))
7 print ("The weight of the person is:" + str(kilos))
8else:
9 print("Error - Please enter a proper weight")