Bit
bit.tobit
int bit.tobit(int num)
Returns the input as a bit number? (in my testing it just returns the number without a decimal)
bit.bnot
int bit.bnot(int num)
Performs a bit negate on the input.
bit.band
int bit.band(int n1, int n2)
Performs a bit and operation on the given inputs.
bit.bor
int bit.bor(int n1, int n2)
Performs a bit or operation on the given inputs.
bit.bxor
int bit.bxor(int n1, int n2)
Performs a bit xor operation on the given inputs.
bit.lshift
int bit.lshift(int num, int ShiftAmount)
Shifts the input left by the given amount.
bit.rshift
int bit.rshift(int num, int ShiftAmount)
Shifts the input right by the given amount.
bit.arshift
int bit.arshift(int num, int ShiftAmount)
Performs a arithmetic right shift on the given input by the given amount.
bit.rol
int bit.rol(int num, int ShiftAmount)
Circular shifts the input left by the given amount.
bit.ror
int bit.ror(int num, int ShiftAmount)
Circular shifts the input right by the given amount.
bit.bswap
int bit.bswap(int num)
Performs a byte swap on the given input. (basically reverses the bits).
bit.tohex
string bit.tohex(int num)
Returns the input as a hexadecimal string.