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
| Exception | Condition |
|---|---|
| System.FormatException | if the n, is not a number. |
| System.ArgumentNullException | if s, is null. |