ICultureInfo.FormatDoubleWithGroupingSeparator

Syntax

FormatDoubleWithGroupingSeparator(Value: Double): String;

Parameters

Value. Value converted into string type.

Description

The FormatDoubleWithGroupingSeparator method converts real value into string type according to regional standard settings and dividing into numeric groups.

Example

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

After executing the example, the "s" variable will contain the string view of the number 12312300000.1123 with numeric separation. If for Russian settings the _ character is selected as a separator, the 12_312_300_000,1123 value will be obtained.

See also:

ICultureInfo | ICultureInfo.FormatDouble | ICultureInfo.FormatDoublePrec