@kvaser/canking-api
Version:
CanKing API to communicate with the CanKing service using Node.js.
32 lines (16 loc) • 521 B
Markdown
[**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.