float to int in python

Solutions on MaxInterview for float to int in python by the best coders in the world

showing results for - "float to int in python"
Nicole
10 Nov 2018
1# convert float to int 
2x=3.1415
3y=int(x)
4print(y) #outputs 3
Anand
18 Aug 2017
1# convert float to int 
2
3int(2.0) #output :2  
Mateo
22 Jan 2021
1a = 5
2a = float(a) # int to float
Amelie
24 Jan 2019
1int(your_number)
Claudio
28 Sep 2017
1Output
2125
3390
4
Luca
14 Jul 2016
1score = 89
2score = str(score)
3
queries leading to this page
how to round a float number to int in pythonas type int pythonnumbers int pythonhow to chaage dataype from float to int in pythonoython turns a float into a inthow to convert int to float pythonset data type from string to integerpython int string float set a number to a float pythonreturn int to float pythonpython 3 cast float to intrandom from a float to int pythonhow to turn a number in a string into a int pythonpython convert slung valuepython change float to integerpython float32 to int arrayconverting from float to int convert float to int in pythonpython changing interger online number python convert string of number to int or float respectivelypython turn float into intpython int floatpython to integerconvert float data to int pythonpython format float to inthow to convert float to int32 in pythonfrom float to inthow to change to integer pythonpython value float as intconvertir float en int pythonconvertir a int en pythonfloat to floor inthow to turn an int into a 2 decimal float pythonpython decimal to floatcommand for convert string in float pythonconverter float em int pythonpython convert to number typeinteger value pythonhow to change int to float in pythonfrom float to int pythonpython convert float to int if whole numebrhow to convert float string in integer in pythonpython string to pythonhow to make a float pythonpython convert 25 to floatconvert float to an integer in pythonint to floatpython how to turn float into intcast to int pythoninteger conversion pythonstring to int in pythoncast float to int pythonconvert value to int pythonfpython float to intpython array float to intpython convert float integercovert into float pythonpython cast to intint type cast to float in pythonpy float to intmake float pythonfloat and int in pythonint to float in pythonhow to convert a string number to int in pythonhow to convert a variable to an integer in pythonpython float into integerstring format change float to int pythonpython convert float to integerturn int to float pythonhow to change a value into int in pythonchange data type from float to int in pythonfloat to int covertpython int too large to convert to floatconvert decimal to float pythonconverting int to float pythonpython covnert string to inthow to convert float to string pythonpython integer conversionfloat as integer pythonpython change to floatconvert double to int in pythonconvert string to float pythonconvert string to int in vf page 27convert number integer pythonpython to intpython make float intinteger to number pythonfloat string to integer pythonpython value as intchange from float to whole number pythonconver string to values pythonformat change float to int pythonhow to force int in pythonpython cast float integerhow to convert to float in pythonpython converting float64 to all integers without loosing decimalsconvert a float to an int pythonconverting integer to float in pythonhow to convert to int in pythonhow to convert to integer in pythonstring to float pythonhow to transform variables into a list pythonpython convert int to floatfloat value convber to integer pythonconvert int to float python numpypython number change number int to float64 pythonhow to convert to int veriant in pythonfloat number type into integer in pythonconvert num to int in pythonhow to do int float calculations in pythonhow to make a float to a whole number in pythonpython transform float to integerconvert to float in pythonwhat is int in pythoncast from float to int pythonhow to write int in pythonconverting to float in pythonhow to transform july to datatype in pythoncomverting float to int pythonpython convert string to inthow to convert text to integer in pythonhow to convert float column to int in pythonhow to turn a float into a int pythonhow to convert tenser int to float in pythonstring to double pythonhow to change int value pythoncovert float to int pythonhow to change a number to a floatfloat python intturn float into integer pythonpyhton from int to floatpython make int posichange float to int pythonhow to turn string into number pythonphytom where convert to floatconvert a value to integer in pythonconvert string float to int pythonpython 3 cast integerpython how to int declarinf something as an int in pythonpython float is integerpython parse float to integerfloat to int python ceilingforce numbers to int pythonpython int to floatint 28float 29 pythonhow convert long to int in pythonconvert float to double pythonhow to turn something into an integer pythonhow to change from float to int pythonpython convert to floatpython transform int to floatconvertdecimal to interger pythonpython how to change float to intconverting string into int pythonassign int value to float pythonpython how to convert float into intconvert float to real pythonhow to convert a number to an int in pythonhow to change an int to a floatways to convert int to floattry convert to int pythonpython convert string to data typepython conver to numberpython float64 to int64how to convert in pythonpython make something an integerconvert int to number in pythonconvert float string to int pythonfloat int in pythonpython print variable int to floatstr to int python 3int value in python floatcast double to int pythoninteger to string in python 3python how to convert into floatconvert float to string pythonconvert series int to float pythonwhat happens when you try to turn a float into an int in pythonwhat happens when you cast a float to an int pythonhow to convert a float to int in pythonpython number as intconvert float int pythonhow to set strings to int pythonpython float32 to inthow do i make a float number to integer in pythonconvert an integer into float with ten decimal numbers in pythonconverting from int to floatconvert float to integer in pythonfloat to float 28int value 29 3bhow to make number in python a inthow to convert an int to float in pythoncasting float to int pythonint conversion pythonconvert a float to int pythonpython turn int to floatconvert a number to integer pythonpython turn number into floatpython text int and floar numberhow to convert a float in a int in pyhtonpython convert to integer inthow to convert a float to an int in pythonpython convet to intconvert integer to float in pythonfloat to an int 3fint convert integer pythonconvert int to floatget int of float pythonhow to convert float into int in pythonfloat64 to int pythonhow to convert the float to int in python by astypehow to cast an int to an floatpython convert float to int number decimalshow to convert integer to float in pythonnumber to number in pythonconvert float in pythonis it possible to converting string to int pythonconvert number to integer in pythonpython two point string convert integerhow to get the actual value of integer and float from python stringhow to turn float to int pythonpython int to doublehow to convert int to float in numpy 3fconvert integer to float pythonhow to turn float into integer pythonfloat to integer python giving me errorpython return float or inthow to make an integer with pythonhow to convert to string pythonhow to convert a variable to string in pythonprint integer value from float in pythonconvert numbers pythonhow to make a number an int in pythonwrite number as int not float pythonconvert 5b3 2 5d to float number in pythonchange type to integer pythonc 23 convert times to float 2a to int in pythonhow to change data type from float to int in pythonget int value in python from floathow to 2b numbers in pythonmpython int to floatfloat to int converterhow to change a int to a float python python casting float to inttransfer float to int in pythonhow in python we can float in intpython change to intconvert float ot integerhow to make numbers integers in pythonhow to convert an int to a float in pythonhow to convert from float to inttransform a float into int pythonconversion of float to int in pyhtonconverting a float to an integer in pythonpython from float to intpython set int to floatcan float be type cast into integer in pythonpython convert to float intfloat to int in pythonpython convert float into inthow to convert float to int inpython convert numbers to floatconvert a string to a float in pythonpython str to string convertenumber to value python how to convert float to decimal in pythoncast float to int in pythonconvert float to int inpythonfron float to integer pythinconvert integer into float pythonconvert 24 to float pythonhow to force a float into an integer in pythonchange int to float pythonprevious integer in puthonhow to make int a float in pythontransform float to integer pythonas integer pythonparse float to int pythonfloat int string pythonhow to represent integer in pythonpython how to convert float to intpython convert integerchange to integer in pythonwhat are intergers in pythonpython int and floatmpython float to inthow to int a number in pythonconvert float32 to int32 pythonfloat to intpython float 1 0 to inthow to convert to get inside 5b 5d pythonint from float string pythonpthon float to intconvert data to int pythonconvert to float or int pythonhow to cast float to int pythonhow to turn a long float number in pythonpython conver to intpython int to float64python 3 convert float to intpython convert float string to intpython float to integerconvert string and float to int pythonpython3 convert string to floatpython str int float convert float number to integer pythontransform int in pythonpython from float to integeruse int or float to convert pythonpython float or intpython3 convert to stringturn a float into an int pythonpython convert from bstrigtransform float to int pythonhow to make something an integer in pythonconvert string values to integers in pythonpython variable to floattype converting float to number in pythonhow to force float to int in pythonconvert text to numeric in pythonto integer pythonint vs int 28float 28 29 29 pyconvert string to number pythonconvert to int in pythonhow to turn a number into an int pythonto convert number to integer pythonfloat to int python 2 7parse float to intpythonhow to use integers in pythonpython real numbersconverting float64 to int pythonfloat and int pythonpython variable to int intconvert number to float pythonconvert string to int pythonhow to get integer in pythonconvert ifloat to int ythonpython integer floatfloat to int convertwhat is float pythonconverting decimal to float pythonhow to convert integer to float pythonstring to float python 3float integer string pythonconvert float to int python seriesconvert to a float in pythonproperly convert float to int in pythontype int to floatpython float column to inthow to convert to integers in pythonpython convert float to int if possibletypecast float to int in pythonpython float to int syntaxhow to int number in pythonconvert string into float pythonhow to convert from float to int in pythonconver to int pythonpython turn float to intu turn int into float pythonpython float to intgerconvert float to int pythonhow to convert int to floatconvert float to tensorfturn a float into an integer pythonconversion float to int pythonpython tranform float to intpython change floats to inthow to make int to float pythonget int from float pythonfloat to integer pythonconvert string pythonturn a float into int pythonways to turn float to int pytjpnpython float topython to integer conversionpython convert to decimalhow to modify float number to int in pythonconvert float variable to integer pythonconvert string to float or int python in pythonfloat 2bint in pythonpython float int typehow to change result from float to int pythonchange the return type from float to int pythonconverting a float to integer pythonchange to int pythoncast string float to int python string with decimal to int pythonchange more one variable type to float pythonfrom float to int in puthonto int in pythonpython turn number into inthow to make a float an integer in pythonfloat to int pythonpython convert string to numveerpython conert to inthow to int a float pythonstore an int in pythonhow to float a number in pythontypecasting complex to float pythonpython safe way to convert float to decimalconvert decimal type to float pythonconvert float in int pythonhow to convert float type to int in pythonhow to cast ints to floats in pythonhow to convert e value into integer in pythonpython real valueconvert value of variable to string pythonfloat python integerconvert number with point to number pythonpython convert floating point to integerpython int 2a floattransform float into int pythonconvert from float to intconvert int to float in python print statementhow to make number to integer in pythonhow thow to convert float to int pythondouble to int pythonconvert a float into an integer pythonconvert float into integer in pythonpython python int to floatconvert an integer in pythoninteger to float pythonstring to number pythonfloat into integer pythonint value from float pythonhow convert float to int in pythonhow to cast integer to floatpython check if float or intconverting to a floating point pythonconvert float to int in pypython int 28 29 floatchange float to integer in pythonfloat number in pythonconversion python int dechow to assign int value in pythonint 2a float pythonconvert number to int in pythonconvert value to float pythonhow to convert variable to int in pythonpython convert to integerhow to convert numbers in pythonfloat to integer conversion pythonmake number float pythonpython turn to inthow to create function to change integer to float pythonhow to make a number an integer in pythonfloat or int pythonconverting a float to int in pythoninput 28 29 convert str to int pythonhow to add float and int in pythonint to int pythonhow to make integer in pythonpython decimal to int or floatpython force integer typepython turn into digit convert from int to float pythonpython how to convert variable int numbershow to cast in python 3python math convert to inttype conversion float to intconvert variable to a string pythonconvert int string to floathow to convert to get number inside 5b 5d pythonfloat integer pythonhow to change a float to an int pythonconvert int into float pythonpython cast int to float64how to change e number into float pythonpython make number realpython float to int if possiblefloat to int in pythonconvert string values to integer pythoncast int to float pythonhow to convert number to integer in pythonchange type float into int pythonpython turn stringpython convert e number to floatint to float onlinehow do you convert int to int in python 3fconvert float to numeric pythonconverting float to inthow to make a number a whole number in pythonpython make a type numericalpython float convert to inthow to change float to int in pythonhow to convert float to int in pthoncover int pythonconvert 27integer 27 to int in pythonhow to convert a float into int pythonpthon convert float to int value to float pythonpython str to numberhow to conver float to int pythonassign converted value from float to int pythonconver float to int pythonchange a string of a float to an int pythonhow to convert string to float in pythonpython convertir float en inthow int a float pyhontpython make float to int3python typecast float to inthow to turn float into int pythonconvert to integer in pythonconverting float to integer pythonpythonn float to intergersave float as int pythonhow to make float to int in pythondecimal numbers to float pythonhow to convert string to text type in pythonhow to make a decimal string into an integer python 3 7convert an integer to float pythoncreate function change integer to float pythonpython cast float to inthow to turn number into an int in pythonpython convert float to int floorconvert in int in puthonwhat is float 28 27int 27 29 pythonhow to get int from float pythonconverting to integer in pythonpython turn number into integerhow to convert str to int pythonprint float as int pythonpython turn into integerexplicitly converting float to integer in pythonsave a number as integer pythonconvert float into int in pythonhow to make a two into a int in pythonpython convert int to hexhow to transform a float into an integer pythonpython convert to numbernumeric to string in pythonfloat to integer in pythonhow to change an integer to a float in pythonhow to convert number in pythonint from float to int pythonpython transform float with 2c to make value a float pythonhow to print float as int in pythonpython convert variable to integerconvert into integer in pythonhow to change a int to a float python decil pointshow to convert a string to float in pythonconvert array of int to float pythonint to floatt pythonpython int to float with 1 decimal placefloat value convertto in tin pythobpython transfer to intflot conversion in pythonhow to assign int value to variable in pythonhow is number saved in python int or floatfloat to int pypython convert to integer from floatconvert float to intconverting an string to an in pythonconvert variable to string pythonpython create integerpython convert number to integerconvert into integer into pythonconvert into float pythonconverting to numbers to integers in pythonhow to make a float into an int pythonconvert to float pythonwhat happens if i convert a float into an int in pythonhow to convert float to int in python mlpython convert int to numericpython currency to floatturn float to int pyfloat vs int pythonhow to use int in pythonconvert float to int pyconverting integer pythonpython make numbers floathow to convert string into int pythonwhen to convert float to int pythonpython make variable into intconverting float to int in pythonstring float to int pythoncan you change variable type pythonconvert integer into tuple pytonconvert from float to int pythonconvert number to integer pythonconvert decimal to integer pythonconvert string to int python floatroud off float and convert to int in pythonchange variable to int pythonchange float object to integerin pythonhow to convert a float into an integer in pythonpython make int 2bfloat to intpythonwrite a function to typecaste float to int in pythonpython convert string to float or intpython how to create integerhow to make a float in pythonhow to convert integer into float in pythonfloat to intiger pythonstr float int pythonhow to write a float as an integer in pythonhow to get a variable that is a string and convert it to float in python 3how to take the whole number of a float in pythonconvery result in pythoncast float as int pythonhow to cast a float to an int in pythonconvert a version number in a string to float variable pythonto integer in pythonconvert to integer pythonhow to convert text into numbers in pythonconvert float to int pythonnumber change to normal python intpython convert intpython as integermake a float an intphyron number to floathow to change string to float in pythonhow to make an int to a floatall float as integer pythonchange the type of int to float in python coverting float to int pythonint to float pythonpython convert string to numberhow to turn a int into a float pythonpython converting string to intmaking an int pythonconverting int to float in pythonpython convert from decimal to floatint 28number 29 in pythonpython float to int32python turning a 3 integer into a float typecast float to int python 22 22 into int pythonfloat to integerconvert int to float if entered to integer pythonpython int to numberpython convert float to int if 2 0convert int to float pychange string to value pythonpython cast string to floathow make integers and integer in pythonhow to declare an int in pythonpython type decimal to floatconvertir float a int pythonpython converrt float to intconverting string to int pythonchanging float type to int pythonint to float in pythonpython how to convert string to intpython how to turn float into fixed numberconvert integers to float pythonhow to change a int to a float pyconvert to number pythonconvert complex number to float pythonhow to convert number from float to int in pythonhow to convert floats to intpython integer value of floatpython how to convert to floatint of a float pythonfrom complex to float pythonto int pythonhow to covert an int ti list in python 3 6convert to pythonconvert to number in pythonpython convert double to inttype casting in python float to intpython casting float to int is it flooredhow to change a float to an integer in pythonhow to convert from int to float in python numpyfunction to convert decimal to hexadecimal in cpython turn double to intchange from float to int pythonpython convert two floats to inthow to cast a float to int in pythoncreate own function to convert integer to float pythonconvert double to long pythonfloat to in pythonnumbers type conversion python int to floatpython get int from floathow to cast to change the data type pythonconvert int8 to float32 in pythonhow to cast a number as a float in pythonhow to convert integer into float in python with 2 decimal placesmake int from numbers pythonint convert to floatconvert float to int pthonpyhton declare int to floathow to convert number to int pythonhow to turn a float into an integer pythonhow to translate any data type in integerpython convert 22int 22 to 22numeric 22string converter pythonturn float into int pythoncan a variable change data type pythonconvert string float number to integer pythonhow to convert int in pythonhow to convert int to object in pythonpython change variable data type to listcovnert float to int pythonchange the type of string to float pythonhow to cast int in pythonhow to cast a float into a integermake int from float pythonpython converting float to intpython nvert stringfloat as int pythonwhat is float int pythonhow to convert string to num pythonpython t integarconvert a value to int in pythonconvert float string to int pythonchange values type pythonhow to get int value of float pythonint cast pythonpython convert long to intdecimal to float pythonconvert float to int16 pythonfloat to numeric in pythonpython convert value to floatchanging str typefloat values in python to intturn value in to int pythonpython float into inthow to convert float to int pythonchange to integrer valye in pythonhow to convert a variable into a floatconvert values to int pythonhow to prevent python converting float to intconvert int value n float pythonpython number to integerinteger to float in pythonwhat des flaot to int do pythonpython convert float to int number decimal placesstring float integer pythoninteger conversion in pythonconverting float to intergertype casting from string to int in pythonhow to convert string flot 52 25 to int in pythonmake values into numbers pythonhow to cast integer in pythonpython coverting to integerhow to convert decimal into integer in pythonpython convert string float to intpython parse float ot intmake a float a int in pythonconvert float to ceil int in pythonpython tonumberint to number pythonpython convert a float into intpython upgrade int to flaothow to convert number to float in pythonpython convert from float to inttransform float to int in pythonconvert float to 25 in pythonhow to convert floating point to integer in pythonconvert to integer pyhonhow to make numbers in pythonpython make floathow does the int function convert a float to an int 3ffloat string to int pythonconvert float to integer pythonconvert float to int in python with 3 decimal placeshow to make a float into a whole number pythonhow to convert float to byte in c 23change numbers to object datatyoe pythonpython str to intconvert an array of int to float pythonconvert float to string in pythonconvert int to string unity dictonary fixconvert python decimal to floatconverting from float to int pythonchange a float to an int pythonhow to convert float to int in pythonconvert given number to int or float pythonint type to float pythonhow to convert string to int pythonpython truncate float to inthow to cast a double to an int pythonpython to floathow to convert float to whole number pythonpython float and int typehow to convert int into float in pythonconvert two integers into float pythonpython turn string into intfloat 2fint pythonfloat to whole number pythonhow do i type case float to int in pythonhow to transforme value to int pythonhow to make a string an int pythonpython truc float to intpython convert floating to inthow to convert float to intpython float string to intturn int array into float pythonpython integerspython convert to int in placeconvert to a float pyfloat into int pythoncan i covert int to floatflot to int pythonpython converting int to float exception for inf numberin python how does int 28 29 convert floatpython3 string to floathow to convert a number to float in pythonchange float to integer pythonpython make to intfloat and int syntax in pythonhow to change to int in pythonint 2f int 3d float pythonpython chnage to intconvert numeric string to int pythonpython convert value to inthow to covert float values to int in python in dataget integer from float pythonhow to turn a float output into int pythonhow to add a float in pythonint conversion in pythoncasten float to intpython convert decimal to floatpython int 28float 29how to input a string with number in python and transform in pythonconvert to int pythonpython convert int to doublepython float devide to intfloat convert to inthow to convert float to integer in pythonconverting float to int pythontyple of float to int pythonconvert integer to integer pythonpython convet float to intconvert to int in python 3python make inthow to convert float to string in pythonpython code to convert variable to floatfloat to integer pytyhonchange ve to 2bve int pythoncan you convert python variableshwo to convert int to floatconvert float to float pythonconvert variable to string pythonhow to type cast float to int in pythonfloat int pythonpython int conversionconvert a float into integer pythonpython how to convert a float to inthow to convert from float to decimal in pythonconvert 1 258 560 to number pythonfloat to int pythoonhow to use float 28 29 in pythonpython how to cast float to intcast to int or float pythonconversion int en float pythionpython 3 convert to integerstring to int pythonconvert python float to integercast int to floatparse float to int in pythoncambiar float a int pythonpython 2 int to floathow to turn the datatype of a variable to integer in pythonhow to convert flot to int pythonhow to get int value of float in pythontype casting float to int in pythonmake a float an int pythonhow to turn an integer into a float pythonpython string conversion with 22 22 22convert a float to number in pythonconverting float to int using astype pythonpython int 2b floatpython int to inthow to convert float that is object to int in pythoninput to float pythonint 2b int python why get floatpython int transform number with lturning variables into python 27 1 0 27 to int pythonpython how to make integer into floatconvert float to whole number pythonconverrt float to int pythonhow to convert the float to int in pythonconvert series float to int pythonint and float in pythonconvert the float data to integer inpythonhow to cast float as int pythonconvert floats to int pythonhow to make a variable an integer in pythonall fun to covert float in int pythonbhow to convert a variable to int in pythonpython convert to intconvert string to a number in pythonconvert double to int pythonassign value to float python python converting string to doublepython cast int to doubleconvert variable to int pythonfloat 2b int pythonpython convert decimal to integerset variable to both be float and int in pythontruncate float to int pythonchange int to floathow to convert a sympy integer to a python floathow to transform float to int pythonpython copnvert numberstring as numbers python change double into integer pythonpython converting int to floatpython integer conversoneconvert a string number to int pythonpython how to convert var to floatconvert to string python 3how to convert to integer pythonhow to convert string into int and float0 3 to 3 float to int pythonhow to convert a value to integer in pythonpython int to 25how to convert integer to pythonturn float to int pythoncan you convert float to integer in pythonwhat happens to int float in pythonhow to convert int to float with 2 decimal in pythonpython int of floatturn float to int python without intpython3 convert to floatfloat to int pyhtonhow to convert float number to integer in pythonint to floatr array pythonpython change type to stringhow to convert a number to a list in python 3 6converter 2 str pythonhow to cast int to float in pythonconvert int to string python 3python how to convert variable to stringconverting to int in pythonconvert value to integer pythonconvert float to int python giving 0python golf float to intwhat happens when you add a float value to int in pythonhow to convert from int to float in pythontransform 2 int into float pythonpython make float into intconvert python variable to inthow to convert location to integers in pythonpython make integerpython cast string to float64convert float variable to int in pythonint float pythonfloat conversion pythonpython change float to intpython approximate float to inthow conver inti into int in pythonpython convert float to int64convert numbers into int pythonreal pythonhow to change a int to a float after decimal in pythonconvert an int to a float pythonhow to change numbers in pythonpython sythax for convert float into inthow to convert something into a float then an integer in pythonhow to turn a string number to int or float in pythonconvert float type to int type pythonhow to make float into int pythonfloat reduced to interger after str type change pythonfloatinf point to int python python from float to int with nullshow do you create a numeric value in pythonhow to cast a value to a float in pythonpython float to intcalculation leading to int is resulted into float pythonconvert integer to float inpython3python change to typleconvert a float string to int pythonhow to convert int to float in pythonhow to write integer in pythonpython convert float to inthow to float numbers in pythonhow to conver float and str in int python and its type convert a number with points tp an int pythonputhon convert to intpython float and intpython from decimal to floatcast float into int pythonconverting int to floatconvert integer pythonhow to transform july to data type in pythonconvert string to float pyghonconvert int to float in pythonfloat to int castigng pythonpython convert datatype from int to floatassign float in pythonconvert float ot int pyconvert integer to float type in python python string to numberhow to make float into int in pythonconverting an int to floatconvert int to float pythonpython make float to integerhow to turn integer to float pythonphyton float to inthow to convert a float number in integer in pythonconvert float into int pythonhow to cast float to intpython3 parse numberturn integer into decimalt pythonconvert string to numeric pythonmake float int pythonhow can i transform object in float to int pythonpython cast to numericpython convert float to decimalpyhton convert float to intas numeric pythonconvert number to real pythonhow to parse int to float in pythonpython read float as intmake float to int pythonhow to get integer value in pythonconvert number in pythoninteger and float in pythonpython casting float to intint python floatturn int into tuplepython how to convert e intconvert to int from float pythonhow to make a variable a float or integer in pythonhow to transform a float into intconvert integer in pythonconvert double to string pythonconvert float to integerconvert number to float in pythonfloat to int in python