Skip to content

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

utils.Formatter.hex4() method

Formats a 16 bit number into its hexdecimal representation.

Signature:

typescript
hex4(val: number): string;

Parameters

Parameter

Type

Description

val

number

The value.

**Returns:**

string

The hexadecimal string representation.