NevronOpenVision
Nevron.Nov.Numerics Namespace / ComplexExtensions Class / ToComplex Method / ToComplex(String) Method
The string to parse.
In This Topic
    ToComplex(String) Method
    In This Topic
    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.
    Syntax
    [System.Runtime.CompilerServices.Extension()]
    public static System.Numerics.Complex ToComplex( 
       System.string value
    )

    Parameters

    value
    The string to parse.

    Return Value

    A complex number containing the value specified by the given string.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also