IntToHex
Qubes 5.6 Converts an integer to a hexadecimal representation.
Syntax
IntToHex(number, precision)
number = integer whose hexadecimal representation you want to retrieve
precision = minimum number of digits (from 1 to 8)
Remarks
If number contains a fractional part, it will first be rounded to the nearest integer. To convert a floating-point value, see FloatToStr.
The precision parameter indicates the minimum number of digits to display, with zeros being used as a prefix, when necessary.
To convert a number to base-10, see IntToStr.
Example
IntToHex(31, 1) = "1F"IntToHex(31, 4) = "001F"