code/__DEFINES/_math.dm
TOBITSHIFT | Gets shift x that would be required the bitflag (1<<x) |
---|---|
IS_INT | Checks if a number is an integer, or a float |
hex2num | Returns an integer given a hex input, supports negative values "-ff". Skips preceding invalid characters. |
num2hex | Returns the hex value of a decimal number. len == length of returned string. |
Define Details
IS_INT
Checks if a number is an integer, or a float
TOBITSHIFT
Gets shift x that would be required the bitflag (1<<x)
hex2num
Returns an integer given a hex input, supports negative values "-ff". Skips preceding invalid characters.
num2hex
Returns the hex value of a decimal number. len == length of returned string.