Skip to content

Home > resol-vbus-core > utils > Formatter > hex

utils.Formatter.hex() method

Formats a number into its hexadecimal representation.

Signature:

typescript
hex(val: number, len: number): string;

Parameters

Parameter

Type

Description

val

number

The value.

len

number

The length of the output string in characters.

**Returns:**

string

The hexadecimal string representation.