2020-09-26 19:01:41 +02:00

948 B

layout
default

Function hex #

Format a number as hexadecimal.

Syntax #

math.hex(value)

Parameters #

Parameter Type Description
value number Value to be stringified

Returns #

Type Description
string The formatted value

Examples #

//the following outputs "0xF0"
math.hex(240)

See also #

oct, bin