toComplex method

Complex toComplex()

Returns a Complex number equivalent to this Imaginary number.

Implementation

Complex toComplex() =>
    Complex(Integer(0), Imaginary(value.isInteger ? Integer(value.toInt()) : Double(value.toDouble())));