Float | Sololearn: Learn to code for FREE!



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

10/9/2018 9:47:27 AM

Nilutpol Kashyap

2 Answers

New Answer


ODLNT thanks a lot for your help.


float has two advantages *They can represent values between the integers. *They can represent a much greater range of values