Skip to content

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

utils.Formatter.dec2() method

Formats a number into its decimal representation, padding it to a length of 2 digits.

Signature:

typescript
dec2(val: number): string;

Parameters

Parameter

Type

Description

val

number

The value.

**Returns:**

string

The decimal string representation.