Math & Text
hexToInt
$hexToInt — Converts a hexadecimal value to a number.
Converts a hexadecimal value to a number.
Syntax
$hexToInt[hex]
Parameters
- hex (text, required) — Hex value, with or without
#/0x.
Return Value
- string.
Usage
$hexToInt[ff] → "255"
Example
$sendMessage[$hexToInt[ff]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.