Constructs a new DoubleComplex instance from a given string representation using the specified style.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleComplex Parse(
	string s,
	NumberStyles styles
)
Visual Basic (Declaration)
Public Shared Function Parse ( _
	s As String, _
	styles As NumberStyles _
) As DoubleComplex
Visual C++
public:
static DoubleComplex Parse(
	String^ s, 
	NumberStyles styles
)

Parameters

s
Type: System..::.String
A string representation.
styles
Type: System.Globalization..::.NumberStyles
Number styles.

Return Value

A new DoubleComplex instance.

Remarks

Acceptable strings are of the form:
CopyC#
4.2,-5.1
(4.2,-5.1)
4.2
Unacceptable strings are:
CopyC#
4.2 - 5.1i
4.2 - 5.1
For example, with NumberStyles set to NumberStyles.Number | NumberStyles.AllowExponent, the string (4.523000e+000,3.400000e+000) is parseable.

See Also