hex(value, [len])

Convert a number to a hex representation.

Type: function

Parameter(s):

  • value {Number}:

    The number to convert

  • len {Number} Optional:

    The length of the hex number to be created, default: 8

Returns:

  • {String}:

    The hex representation as a string