booleans | SoloLearn: Learn to code for FREE!

+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

3/30/2019 3:52:29 AM

Hendrick Motlhake

4 Answers

New Answer

+5

Hendrick Motlhake != returns true if both the values are not same

+8

This is not true, it is false Proof: https://code.sololearn.com/cvSZ2iyYUImd/?ref=app

+3

2 == 0b10 (decimal 2 is 10 in binary)

0

why this this work the 2!=10