Literal

# &b

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Used to represent binary literals.

## Usage

``` xojo
&bBinaryNumber
```

| Part         | Type          | Description             |
|--------------|---------------|-------------------------|
| BinaryNumber | Binary number | A binary literal value. |

## Notes

To write a binary literal, precede the value with <span class="title-ref">&b</span>.

## Sample code

Assigning a number using a binary literal:

``` xojo
Var value As Integer
value = &b101 ' value = 5 as a decimal integer
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Bin</api/text/bin>` function.

</div>
