ICultureInfo.FormatDouble

Syntax

FormatDouble(Value: Double): String;

Parameters

Value. Value converted into string type.

Description

The FormatDouble method converts real value into string type according to regional standard settings.

Example

Sub UserProc;
Var
    CF: ICultureInfo;
    s: String;
Begin
    CF := CultureInfo.Current;
    s := CF.FormatDouble(12312300000.1123);
End Sub UserProc;

After executing the example, the "s" variable will contain the string view of the number 12312300000.1123. For Russian regional standard settings there will be the value 12312300000.1123.

See also:

ICultureInfo | ICultureInfo.FormatDoublePrec | ICultureInfo.FormatDoubleWithGroupingSeparator