We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac18efb commit b1e8212Copy full SHA for b1e8212
doc/Type/Complex.pod
@@ -46,6 +46,8 @@ Usage:
46
47
Returns the real part of the complex number.
48
49
+ say (3+5i).re; # 3
50
+
51
=head2 method im
52
53
Defined as:
@@ -58,6 +60,22 @@ Usage:
58
60
59
61
Returns the imaginary part of the complex number.
62
63
+ say (3+5i).im; # 5
64
65
+=head2 method reals
66
67
+Defined as:
68
69
+ method reals(Complex:D:) returns Positional:D
70
71
+Usage:
72
73
+ COMPLEX.reals
74
75
+Returns a two-element list containing the real and imaginary parts for this value.
76
77
+ say (3+5i).reals; # (3 5)
78
79
=head2 method isNaN
80
81
0 commit comments