Kvaser CanKing GUI Extensions SDK v7.6.1


Kvaser CanKing GUI Extensions SDK / models / 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.