Float | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Float

can someone please explain to me in the below code how if condition is satisfied? the value of f is 0.7 as a float variable. but the condition f <0.7 is satisfied. how is that? thanks https://code.sololearn.com/c210W3jZ708Y/?ref=app

9th Oct 2018, 9:47 AM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
2 Answers
+ 3
ODLNT thanks a lot for your help.
9th Oct 2018, 11:18 AM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
- 1
float has two advantages *They can represent values between the integers. *They can represent a much greater range of values
16th Oct 2018, 2:47 PM
Revathi Thendral
Revathi Thendral - avatar