Skip to content

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

utils.Formatter.hex8() method

Formats a 32 bit number into its hexdecimal representation.

Signature:

typescript
hex8(val: number): string;

Parameters

Parameter

Type

Description

val

number

The value.

**Returns:**

string

The hexadecimal string representation.