Como podemos convertir el float en enteros? Por favor alguien que me explique. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Como podemos convertir el float en enteros? Por favor alguien que me explique.

Float, Python

4th Jun 2021, 2:39 PM
Alejandra Taba
2 Answers
0
x = float(input()) y = float(2 + 4) # float() converts the expression inside the brackets to a float, if it is possible
5th Jun 2021, 12:06 PM
Paul
Paul - avatar
+ 1
float(2)
4th Jun 2021, 2:43 PM
Lisa
Lisa - avatar