From Clomosy Docs

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:

DecHex.png

See Also