System.SysUtils.TInt64Helper.ToHexString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToHexString: string; overload; inline;
function ToHexString(const MinDigits: Integer): string; overload;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TInt64Helper

Description

Converts Int64 to a hexadecimal string.

This method is overloaded:

  • The first overloaded method ToHexString converts this Int64 number to a hexadecimal string representation with 16 hexadecimal digits.
  • The second overloaded method ToHexString converts this Int64 number to a hexadecimal string with a minimum number of hexadecimal digits represented by the MinDigits parameter. If the value has fewer digits than MinDigits parameter, the resulting string is left-padded with zeros if the value is positive or zero, or with character 'F' if the value is negative.
Note: For details on how the conversion is processed, see the description of IntToHex.

See Also