From Clomosy Docs
function IntToHex(Value: Integer; Digits: Integer):string;
The IntToHex function converts a Value integer into a hexadecimal format sting of at least Digits characters wide.
The resulting string has no prefix character.
Example
var
numberValue :Integer;
{
numberValue = 8090;
ShowMessage(IntToStr(numberValue)+' decimal = '+IntToHex(numberValue, 1));
ShowMessage(IntToStr(numberValue)+' decimal = '+IntToHex(numberValue, 8));
}
Output:
8090 decimal = 1F9A
8090 decimal = 00001F9A
