+ 1

Booleans

Why is 8.7<=8.70 True

25th May 2020, 5:18 PM
Chinaza
Chinaza - avatar
5 Respostas
+ 1
Chinaza ok you are welcomed
25th May 2020, 5:29 PM
Isaac Duah [Active!]
Isaac Duah [Active!] - avatar
+ 3
Because 0 after 8.7 is nothing and compiler dont use 0 after 8.7 , so 8.7<=8.7 and it is True)
25th May 2020, 5:25 PM
꧁༒☬Bad☬Boy☬༒꧂
꧁༒☬Bad☬Boy☬༒꧂ - avatar
+ 2
8.7 is not less than 8.70 because they are equal and the sign"=" makes the boolean true.
25th May 2020, 5:26 PM
Isaac Duah [Active!]
Isaac Duah [Active!] - avatar
+ 1
Ohhh thanks you guys
25th May 2020, 5:29 PM
Chinaza
Chinaza - avatar
0
<= means "smaller or equal". They are equal.
25th May 2020, 5:25 PM
Schindlabua
Schindlabua - avatar