Gambas Documentation - /cat/bit

# Bits Manipulation Functions

`BClr` | Clears a bit in an integer number.
`BSet` | Sets a bit in an integer number.
`BTst` | Tests a bit in an integer number.
`BChg` | Inverts a bit in an integer number.
`Lsl` | Shifts an integer number to the left.
`Lsr` | Shifts an integer number to the right.
`Shl` / `Asl` | Shifts an integer number to the left by keeping its sign.
`Shr` / `Asr` | Shifts an integer number to the right by keeping its sign..
`Rol` | Rotates an integer number to the left.
`Ror` | Rotates an integer number to the right.

### See also

- Logical Operators