toHex
This function is used by Ignition's Expression language.
Description
Returns a hex formatted string representing the unsigned integer argument. If the argument is negative, the hex string represents the value plus 232.
Syntax
toHex(number)
Parameters
- int number - The number to convert to hex.
Results
- string - A string that is the hex value of the specified value.
Examples
Code Snippet
toHex(255) //returns "FF"
Code Snippet
toHex(-255) //returns "FFFFFF01"