(lsh integer1 integer2)
Do a bitwise shift.
This function performs a logical shift of bits. Integer1 denotes the number, while integer2 denotes the number of bits to shift integer1. When integer2 is positive, it shifts to the left; negative shifts to the right.
lsh works with integers only. The 1 signifies the bit is on; the 0 signifies it is off.
Examples
| Code | Returns |
|---|---|
| (lsh 12 1) | 24 |
| (lsh 8 -1) | 4 |
| (lsh 24 3) | 192 |
en
italiano
čeština
Deutsch
français
hrvatski
magyar
polski
српски
русский
中文
中文
한국어
español