System.SysUtils.TExtendedHelper.ToString

From RAD Studio API Documentation
Jump to: navigation, search

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 Value parameter.
  • Returns a thread-safe string representation of the Value parameter.
  • Returns a string representation of the Value parameter with specified Precision, Digits, and Format.
  • Returns a thread-safe string representation of the Value parameter with specified Precision, Digits, and Format.

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.

See Also