System.SysUtils.TSingleHelper.ToString

提供: RAD Studio API Documentation
移動先: 案内検索

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: Single): string; overload; inline; static;
class function ToString(const Value: Single; const AFormatSettings: TFormatSettings): string; overload; inline; static;
class function ToString(const Value: Single; const Format: TFloatFormat; const Precision, Digits: Integer): string; overload; inline; static;
class function ToString(const Value: Single; const Format: TFloatFormat; const Precision, Digits: Integer;  const AFormatSettings: TFormatSettings): string; overload; inline; static;

プロパティ

種類 可視性 ソース ユニット
function public System.SysUtils.pas System.SysUtils TSingleHelper


説明

浮動小数点値を文字列に、次のような指定されたパラメータを使用して変換します: FormatPrecisionDigits

このメソッドは、以下のようにオーバーロード(多重定義)されています。

  • Value パラメータの文字列表現を返します。
  • Value パラメータの、スレッドセーフな文字列表現を返します。
  • Value パラメータの文字列を表現を、指定された PrecisionDigitsFormat の形式で返します。
  • Value パラメータのスレッドセーフな文字列を表現を、指定された PrecisionDigitsFormat の形式で返します。

Precision パラメータにより、与えられた値の精度を指定します。 これは、Single 型の値に対して、7 以下でなければなりません。 Digits および Format パラメータが一緒になり、値が文字列にどのように書式設定されるか制御します。 詳細については、TFloatFormat の説明を参照してください。

関連項目