reals
ErrorsCollection

reals

Synthesised documentation from type/Complex

From type/Complex

See Original text in context

method reals(Complex:D: --> Positional:D)

Returns a two-element list containing the real and imaginary parts for this value.

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