- 3
What is a float
2 Respostas
+ 10
Straight from the Python course - https://www.sololearn.com/Course/Python/?ref=app :
Floats are used in Python to represent numbers that aren't integers.
Some examples of numbers that are represented as floats are 0.5 and -7.8237591.
They can be created directly by entering a number with a decimal point, or by using operations such as division on integers. Extra zeros at the number's end are ignored. For eg.
>>> 3/4
0.75
>>> 9.8765000
9.8765
+ 3
is funny how the tags in your question are actually your answer.