• Convert a decimal number to hexadecimal number

    Parameters

    • dec: number

      Number in base 10

    Returns string

    Hexadecimal string

    base10ToBase16(16);  // => '10'