Skip to content

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

utils.Formatter.hex2() method

Formats a 8 bit number into its hexdecimal representation.

Signature:

typescript
hex2(val: number): string;

Parameters

Parameter

Type

Description

val

number

The value.

**Returns:**

string

The hexadecimal string representation.