Literal
&b
Description
Used to represent binary literals.
Usage
&bBinaryNumber
Part |
Type |
Description |
---|---|---|
BinaryNumber |
Binary number |
A binary literal value. |
Notes
To write a binary literal, precede the value with &b.
Sample code
Assigning a number using a binary literal:
Var value As Integer
value = &b101 ' value = 5 as a decimal integer
Compatibility
All project types on all supported operating systems.
See also
Bin function.