- Documentation
- Shared functions
- bitArShift
Function
bitArShift
Arithmetic right shift: keeps the highest bit (the sign of a 32-bit number).
Syntax
int bitArShift(int value, int count)Arguments
valueint- The number.
countint- Shift count.
Returns
The result as unsigned 32 bits.
Example
print(string.format("%08X", bitArShift(0x80000000, 4))) -- F8000000