Garry's Mod Wiki

Revision Difference

bit.tohex#563284

<function name="tohex" parent="bit" type="libraryfunc"> <description>Returns the hexadecimal representation of the number with the specified digits.</description> <description>Returns the hexadecimal representation of the number with the specified number of characters.</description> <realm>Shared and Menu</realm> <args> <arg name="value" type="number">The value to be normalized.</arg> <arg name="digits" type="number" default="8">The number of digits. Optional</arg>⤶ <arg name="characters" type="number" default="8">Maximum number of characters, if set. The absolute maximum is 8.</arg>⤶ </args> <rets> <ret name="" type="string">hexString</ret>⤶ <ret name="" type="string">The hexadecimal representation, such as "00000001".</ret>⤶ </rets> </function>