How does it work 5.5 | 0 === 5?
5.5 | 0 === 5
Is it | 0bitwise in this context OR, I suspect this is so? If so, why did he disable everything after the dot?
| 0
OR
Bitwise operators always reduce operands to 32-bit targets.
The operation is interpreted as
5.5 | (0 === 5)
which the
5.5 | false
which is forced to
5.5 | 0
Now 5.5converts to a 32-bit integer, so we have
5.5
5 | 0
which is equal 5.
5
, , . ( , , ), .
| , 32- . Pointy, 5.5 | 0 === 5 5.5 | (0 === 5), 5.5 | false.
|
:
& hellip;5. lnum - ToInt32 (lval).6. rnum ToInt32 (rval).7. @ lnum rnum. 32- .
X | 0 → X , .
X | 0
X
It is not equal to true, it is simply not equal to false.
returns