inttohex from delphi help: Returns the hex representation of an integer. Unit SysUtils Category numeric formatting routines Delphi syntax: function IntToHex(Value: Integer; Digits: Integer): string; overload;function IntToHex(Value: Int64; Digits: In…