code/__DEFINES/_math.dm ![code/__DEFINES/_math.dm0](git.png)
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 ![code/__DEFINES/_math.dm 243](git.png)
Checks if a number is an integer, or a float
TOBITSHIFT ![code/__DEFINES/_math.dm 108](git.png)
Gets shift x that would be required the bitflag (1<<x)
hex2num ![code/__DEFINES/_math.dm 249](git.png)
Returns an integer given a hex input, supports negative values "-ff". Skips preceding invalid characters.
num2hex ![code/__DEFINES/_math.dm 252](git.png)
Returns the hex value of a decimal number. len == length of returned string.