Documentation for method im assembled from the following pages:

Class: Complex §

From Complex

(Complex) method im §

Defined as:

method im(Complex:D: --> Real:D)

Returns the imaginary part of the complex number.

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