+ 1

booleans

guy i don't understand the maths behind booleans how is this true and why (2==10) 1. Is it because they are numbers

30th Mar 2019, 3:52 AM
Hendrick Motlhake
Hendrick Motlhake - avatar
4 Respostas
+ 6
Hendrick Motlhake != returns true if both the values are not same
30th Mar 2019, 4:15 AM
Letsintegreat
Letsintegreat - avatar
+ 8
This is not true, it is false Proof: https://code.sololearn.com/cvSZ2iyYUImd/?ref=app
30th Mar 2019, 4:03 AM
Letsintegreat
Letsintegreat - avatar
+ 3
2 == 0b10 (decimal 2 is 10 in binary)
30th Mar 2019, 4:09 AM
Anna
Anna - avatar
0
why this this work the 2!=10
30th Mar 2019, 4:12 AM
Hendrick Motlhake
Hendrick Motlhake - avatar