Float | SoloLearn: Learn to code for FREE!

+3

Float

What is the meaning of floats in python

2/19/2018 10:37:52 AM

Jared momanyi

3 Answers

New Answer

+21

Probably go through the course again... https://www.sololearn.com/learn/Python/2272/

+9

Floats are fractional numbers as like 4.05, 7.23, 1.4,2.00, where as 2 is an Integer Number but I can express it as Float Number by 2.00 In Python numbers are stored as Integer properly but sometimes it's difficult for computer's memory or hard disk to stored Float Numbers. Python uses / (single Slash) for giving result as Float Number,like 20/5=4.0 Python uses // (double Slash) for giving result as Integer,like 20//5= 4

+4

It is a number with decimals, whereas an integer is a whole number, no decimals. Double is like float, but with more decimal places for more precision.