toComplex method
Returns a Complex number equivalent to this Imaginary number.
Implementation
Complex toComplex() =>
Complex(Integer(0), Imaginary(value.isInteger ? Integer(value.toInt()) : Double(value.toDouble())));
Returns a Complex number equivalent to this Imaginary number.
Complex toComplex() =>
Complex(Integer(0), Imaginary(value.isInteger ? Integer(value.toInt()) : Double(value.toDouble())));