ICultureInfo.FormatDecimal

Syntax

FormatDecimal(Value: Decimal): String;

Parameters

Value. Value converted into string type.

Description

The FormatDecimal method converts decimal value into string type according to regional standard settings.

Example

Function GetInvariantDecimal(Value: Decimal): String;
Var
    CI: ICultureInfo;
Begin
    CI := CultureInfo.Invariant;
    Return CI.FormatDecimal(Value);
End Function GetInvariantDecimal;

The specified function can be used to convert decimal values into string type according to invariant culture settings.

See also:

ICultureInfo