ICultureInfo.ParseDouble

Syntax

ParseDouble(Value: String): Double;

Parameters

Value. Value converted into real type.

Description

The ParseDouble method converts the specified value into real type according to regional standard settings.

Comments

If the conversion is not possible, the exception is thrown.

Example

Sub UserProc;
Var
    CI: ICultureInfo;
    D: Double;
Begin
    CI := CultureInfo.Current;
    D := CI.ParseDouble("456,78");
End Sub UserProc;

After executing the example the "D" variable contains the real value obtained by conversion from a string.

See also:

ICultureInfo