System.SysUtils.TDoubleHelper.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: Double): string; overload; inline; static;
class function ToString(const Value: Double; const AFormatSettings: TFormatSettings): string; overload; inline; static;
class function ToString(const Value: Double; const Format: TFloatFormat; const Precision, Digits: Integer): string; overload; inline; static;
class function ToString(const Value: Double; const Format: TFloatFormat; const Precision, Digits: Integer; const AFormatSettings: TFormatSettings): string; overload; inline; static;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TDoubleHelper |
説明
浮動小数点値を文字列に、次のような指定されたパラメータを使用して変換します:Format
、Precision
、Digits
。
このメソッドは、以下のようにオーバーロード(多重定義)されています。
Value
パラメータの文字列表現を返します。Value
パラメータの、スレッドセーフな文字列表現を返します。Value
パラメータの文字列を表現を、指定されたPrecision
、Digits
、Format
の形式で返します。Value
パラメータのスレッドセーフな文字列を表現を、指定されたPrecision
、Digits
、Format
の形式で返します。
Precision
パラメータにより、与えられた値の精度を指定します。 これは、Double 型の値に対して、15 以下でなければなりません。 Digits
および Format
パラメータが一緒になり、値が文字列にどのように書式設定されるか制御します。 詳細については、TFloatFormat の説明を参照してください。