01-16-2018, 10:07 AM
If i perform an AND between 2 integers it is bitwise:
#160d AND #FFFFh gives result #160d
If one input is a real then the result is 1 if both input nonzero:
160 AND #FFFFh gives result 1
So far so good. However:
x:=#160d
x AND #FFFFh gives result 1 even though x has an integer value.
How can one perform a bitwise AND between integer variables?
#160d AND #FFFFh gives result #160d
If one input is a real then the result is 1 if both input nonzero:
160 AND #FFFFh gives result 1
So far so good. However:
x:=#160d
x AND #FFFFh gives result 1 even though x has an integer value.
How can one perform a bitwise AND between integer variables?