Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TExtendedHelper.ToString

Convert a Extended-sized floating point value to a string.

Declaration

Source position: syshelph.inc line 821

public class function TExtendedHelper.ToString(

  const AValue: Extended

):string; overload;

class function TExtendedHelper.ToString(

  const AValue: Extended;

  const AFormatSettings: TFormatSettings

):string; overload;

class function TExtendedHelper.ToString(

  const AValue: Extended;

  const AFormat: TFloatFormat;

  const APrecision: Integer;

  const ADigits: Integer

):string; overload;

class function TExtendedHelper.ToString(

  const AValue: Extended;

  const AFormat: TFloatFormat;

  const APrecision: Integer;

  const ADigits: Integer;

  const AFormatSettings: TFormatSettings

):string; overload;

function TExtendedHelper.ToString(

  const AFormat: TFloatFormat;

  const APrecision: Integer;

  const ADigits: Integer

):string; overload;

function TExtendedHelper.ToString(

  const AFormat: TFloatFormat;

  const APrecision: Integer;

  const ADigits: Integer;

  const AFormatSettings: TFormatSettings

):string; overload;

function TExtendedHelper.ToString(

  const AFormatSettings: TFormatSettings

):string; overload;

function TExtendedHelper.ToString: string; overload;

Description

ToString will convert AValue (or Self in the plain method version) to a string. Optionally FormatSettings can be specified, to be able to specify the decimal separator character to use.

Additionally, a precision APrecision and number of digits ADigits can be specified, in conjunction with a AFormat parameter to specify the form in which the floating-point value must be represented. (see TFloatFormat for an explanation of the various values). In this case, FloatToStrF is used to format the value. In the absence of these parameters, FloatToStr is called.

See also

FloatToStr

  

Convert a float value to a string using a fixed format.

FloatToStrF

  

Convert a float value to a string using a given format.

TFloatFormat

  

Formats for the FloatToText function.


Documentation generated on: Nov 22 2024