Skip to content
Math & Text intToHex

$intToHex — Converts a number to hexadecimal.

Converts a number to hexadecimal.

Syntax

$intToHex[number]

Parameters

  • number (number, required) — The integer.

Return Value

  • string.

Usage

$intToHex[255] → "ff"

Example

$sendMessage[$intToHex[255]]

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.