Float | SoloLearn: Learn to code for FREE!

+4

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

10/9/2018 9:47:27 AM

Nilutpol Kashyap

2 Answers

New Answer

+2

ODLNT thanks a lot for your help.

-1

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