Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Bit Test or Bit AND?

$
0
0
Is there a way to test a bit in a numeric value?

E.g.,

x = 10 -- 0x0A
b = 2 -- 0x02
if Math.BitAnd(x,b) then
... do stuff
end

Viewing all articles
Browse latest Browse all 2105

Trending Articles