+ 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
2 Answers
+ 3
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