In Complex§

See primary documentation in context for method im.

methodim(Complex:D: --> Real:D)

Returns the imaginary part of the complex number.

say (3+5i).im; # OUTPUT: «5␤»
close