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'
Convert any number to its hexadecimal equivalent.