Convert any number to its hexadecimal equivalent.
A decimal number to convert
The minimum number of digits to show
The number n converted to hexadecimal
n
const hex = SMath.toHex(10, 2); // '0A' Copy
const hex = SMath.toHex(10, 2); // '0A'
Use native number.toString(16)
number.toString(16)
Convert any number to its hexadecimal equivalent.