ComplexExtensionsToComplex(String, IFormatProvider) Method |
Creates a complex number based on a string. The string can be in the
following formats (without the quotes): 'n', 'ni', 'n +/- ni',
'ni +/- n', 'n,n', 'n,ni,' '(n,n)', or '(n,ni)', where n is a double.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Complex ToComplex(
this string value,
IFormatProvider formatProvider
)
Parameters
- value String
-
the string to parse.
- formatProvider IFormatProvider
-
An IFormatProvider that supplies culture-specific
formatting information.
Return Value
Complex
A complex number containing the value specified by the given string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also