Space Station 13 - Modules - TypesDefine Details

code/__DEFINES/_math.dm

TOBITSHIFTGets shift x that would be required the bitflag (1<<x)
IS_INTChecks if a number is an integer, or a float
hex2numReturns an integer given a hex input, supports negative values "-ff". Skips preceding invalid characters.
num2hexReturns 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.