System.SysUtils.TSmallIntHelper.ToHexString
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 | TSmallIntHelper | 
Description
Converts a SmallInt number to a hexadecimal string.
This method is overloaded:
- The first overloaded method ToHexString converts this SmallInt number to a hexadecimal string representation with 4 hexadecimal digits.
 - The second overloaded method ToHexString converts this SmallInt  number to a hexadecimal string with a minimum number of hexadecimal digits represented by the 
MinDigitsparameter. If the value has fewer digits thanMinDigitsparameter, 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.