D dagnabitboy Active Member Licensed User Longtime User May 28, 2011 #1 I want to do a logic operation "anding" two numeric quantites. Example: decimal 257 (0x101 hex) "and" decimal 255 (0xFF in hex). the result is 0x01 of course. In other cases I may want to "and" with other values to detect if specific bits are set. Is there a logical math operator for this? Didn't see it in my search. Thanks!
I want to do a logic operation "anding" two numeric quantites. Example: decimal 257 (0x101 hex) "and" decimal 255 (0xFF in hex). the result is 0x01 of course. In other cases I may want to "and" with other values to detect if specific bits are set. Is there a logical math operator for this? Didn't see it in my search. Thanks!
D dagnabitboy Active Member Licensed User Longtime User May 28, 2011 #2 found the answer, quite by accident. AndedValue=bit.And(N1 as Int,N2 as Int) Thanks anyway! Upvote 0