VB Code:
Dim decValue as Decimal = cDec(2^3+2^4+2^2+2^0) If DecValue = (decValue And 2^4) Then 'Fifth bit set Msgbox "Bit 5 is set" End if
This gives me a conversion error with Option Strict On
Do bitwise operators only work with Longs??
|
Results 1 to 3 of 3
Thread: Bitwise Operations ???Threaded View
|
Click Here to Expand Forum to Full Width |