polar
ErrorsCollection

polar

Synthesised documentation from type/Complex

From type/Complex

See Original text in context

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

Returns a two-element list of the polar coordinates for this value, i.e. magnitude and angle in radians.

say (10+7i).polar# OUTPUT: «(12.2065556157337 0.610725964389209)␤»