+ 1

I don't understand how a <0.7

https://code.sololearn.com/croQjY7ladBo/?ref=app float a =0.7 ,the condition if a<0.7 is approved how

5th Feb 2019, 7:14 PM
Youstina Amin
Youstina Amin - avatar
2 Réponses
+ 7
You're comparing a float and a double. The value stored in the double isn't exactly 0.7, but something like 0.699825. If you change it to 0.700f, the values will be equal
5th Feb 2019, 7:43 PM
Anna
Anna - avatar
+ 1
Anna thank you
5th Feb 2019, 8:20 PM
Youstina Amin
Youstina Amin - avatar