System.SysUtils.TExtendedHelper.ToString
Delphi
function ToString: string; overload; inline;
function ToString(const AFormatSettings: TFormatSettings): string; overload; inline;
function ToString(const Format: TFloatFormat; const Precision, Digits: Integer): string; overload; inline;
function ToString(const Format: TFloatFormat; const Precision, Digits: Integer; const AFormatSettings: TFormatSettings): string; overload; inline;
class function ToString(const Value: Extended): string; overload; inline; static;
class function ToString(const Value: Extended; const AFormatSettings: TFormatSettings): string; overload; inline; static;
class function ToString(const Value: Extended; const Format: TFloatFormat; const Precision, Digits: Integer): string; overload; inline; static;
class function ToString(const Value: Extended; const Format: TFloatFormat; const Precision, Digits: Integer; const AFormatSettings: TFormatSettings): string; overload; inline; static;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas | System.SysUtils | TExtendedHelper |
Description
Converts a floating point value to a string, using specified parameters such as: Format, Precision, and Digits.
This method is overloaded:
- Returns the string representation of the
Valueparameter. - Returns a thread-safe string representation of the
Valueparameter. - Returns a string representation of the
Valueparameter with specifiedPrecision,Digits, andFormat. - Returns a thread-safe string representation of the
Valueparameter with specifiedPrecision,Digits, andFormat.
The Precision parameter specifies the precision of the given value. It should be 18 or less for values of type Extended.
The Digits and Format parameters together control how the value is formatted into a string. For details, see the description of TFloatFormat.