toComplex

fun Number.toComplex(): Complex

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

Receiver

the real part.

Return

the new complex number.

Sources

Link copied to clipboard