02-15-2024, 03:34 AM
Just to clarify the issue I have done this:
Code: (Select All)
Dim b As _Unsigned _Bit * 64
' F - 4-bit
b = &B1111&
Print Hex$(b)
' FF - 8-bit
b = &B11111111&
Print Hex$(b)
' FFF - 12-bit
b = &B111111111111&
Print Hex$(b)
' FFFF - 16-bit
b = &B1111111111111111&
Print Hex$(b)
' FFFFFFFF - 32-bit
b = &B11111111111111111111111111111111&&
Print Hex$(b)
' FFFFFFFFFFFFFFFF - 64-bit
b = &B1111111111111111111111111111111111111111111111111111111111111111~&&
Print Hex$(b)