bit.shr
Lua function bit.shr Summary Shifts a number right Prototype `n = bit.shr (num, bits)` Description `This takes two arguments. Both are converted to unsigned 'long long' (64-bit unsigned integers). The first argument is shifted right the number of bits in the second argument. eg.
    print (bit.shr (1024, 6)) --> 16
` See Also ... Topics Lua base functions Lua bc (big number) functions Lua bit manipulation functions Lua coroutine functions Lua debug functions Lua io functions Lua math functions Lua os functions Lua package functions Lua PCRE regular expression functions Lua script extensions Lua string functions Lua table functions Lua utilities Scripting Lua functions bit.ashr (Shifts a number right, preserving sign) bit.band (Bitwise 'and') bit.bor (Bitwise 'or') bit.mod (Bitwise 'modulus' (remainder after integer divide)) bit.neg (Bitwise negate (ones complement)) bit.shl (Shifts a number left) bit.tonumber (Convert a string into a number) bit.tostring (Convert a number into a string) bit.xor (Bitwise 'exclusive or') (Help topic: lua=bit.shr) Documentation contents page