Kvaser CanKing GUI Extensions SDK v7.4.0
Kvaser CanKing GUI Extensions SDK / models / decimalToHex
Function: decimalToHex()
decimalToHex(
d,padding,prefix):string
Converts a decimal number to a hexadecimal string.
Parameters
d
number
The number to convert.
padding
number = 2
Number of hexadecimal digits in the returned value, the result will be padded with zeroes.
prefix
boolean = false
True if a 0x prefix should be added.
Returns
string
The hexadecimal formatted value.