NAnt SDK Documentation - v0.92

DoubleConversionFunctions.Parse Method 

Converts the specified string representation of a number to its double-precision floating point number equivalent.

[Visual Basic]
<Function(Name:="parse")>
Public Shared Function Parse( _
   ByVal s As String _
) As Double
[C#]
[Function(Name="parse")]
public static double Parse(
   string s
);

Parameters

s
A string containing a number to convert.

Return Value

A double-precision floating point number equivalent to the numeric value or symbol specified in s.

Remarks

The NumberFormatInfo for the invariant culture is used to supply formatting information about s.

Exceptions

Exception Type Condition
FormatException s is not a number in a valid format.
OverflowException s represents a number less than MinValue or greater than MaxValue.

See Also

DoubleConversionFunctions Class | NAnt.Core.Functions Namespace