Created a Complex from the given string. The string can be in the following formats: n, ni, n +/- ni, n,n, n,ni, (n,n), or (n,ni), where n is a real number.

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	s As String _
)
C#
public Complex (
	string s
)
C++
public:
Complex (
	String^ s
)

Parameters

s (String)
The string to create the Complex from.

Exceptions

ExceptionCondition
System.FormatExceptionif the n, is not a number.
System.ArgumentNullExceptionif s, is null.