toComplex

fun Number.toComplex(): Complex

Creates a complex number with real part equal to this real.

Return

the new complex number.