Parse(Value: String): Double;
Value. The string value that must be converted into real type.
The Parse method converts a string value into real type without checking for the string correctness.
This method does not take into account specified regional parameters. The . symbol used to divide integral and fractional parts of number should be used in the value passed by the Value parameter; decimal separator is not used.
If conversion fails, an exception is thrown.
To convert real numbers in accordance with the specified regional parameters, use the following methods:
Sub UserProc;
Var
d: Double;
S: String;
Begin
s := "234.234";
d := Double.Parse(s);
End Sub UserProc;
After executing the example the "d" variable contains the value 234.234 obtained by converting from the specified string value.
See also: