- Documentation
- Shared functions
- bitRRotate
Function
bitRRotate
Rotates bits right: bits leaving on the right come back on the left.
Syntax
int bitRRotate(int value, int count)Arguments
valueint- The number.
countint- Rotation count.
Returns
The result.
Example
print(string.format("%08X", bitRRotate(3, 1))) -- 80000001