[**Kvaser CanKing GUI Extensions SDK v7.5.1**](../../README.md)

***

[Kvaser CanKing GUI Extensions SDK](../../modules.md) / [models](../README.md) / decimalToFixed

# Function: decimalToFixed()

> **decimalToFixed**(`d`, `padding?`): `string`

Converts a decimal number to a fixed length string.

## Parameters

### d

`number`

The number to convert.

### padding?

`number` = `3`

Number of digits in the returned value, the result will be padded with zeroes.

## Returns

`string`

The fixed length formatted value.
