Skip to content

Commit a2e8cad

Browse files
stonedJJ
authored andcommitted
Document Num.Str
1 parent f6023da commit a2e8cad

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/Type/Num.pod6

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@ L<denominator|/routine/denominator> and C<1>, C<-1>, or C<0> L<numerator|/routin
137137
138138
Returns the invocant.
139139
140+
=head2 method Str
141+
142+
method Str(Int:D)
143+
144+
Returns a string representation of the number.
145+
146+
say π.Str; # OUTPUT: «3.141592653589793␤»
147+
148+
L«C<Cool>|/type/Cool» being a parent class of C<Num>, an explicit call
149+
to the C<Num.Str> method is seldom needed.
150+
151+
say π.Str.comb == π.comb; # OUTPUT: «True␤»
152+
140153
=head2 method Bridge
141154
142155
Defined as:

0 commit comments

Comments
 (0)