• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

bitwise operations

  1. F

    [Lua] Bitwise Functions

    Left Shift function lshift(x, y) return x * 2 ^ y end Example: print( lshift(1, 11) ) -- prints 2048 Right Shift function rshift(x, y) return math.floor(x / 2 ^ y) end Example: print( rshift(11, 1) ) -- prints 5 Number To Binary function getBits(num, asString) local x = {}...
Back
Top