Skip to content

Commit f4af5a8

Browse files
committed
[CaR Grant] Document Rational.base-repeating with no args
Spec: Raku/roast@7263105372 Rakudo impl: since before the Christmas
1 parent b1b494d commit f4af5a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Type/Rational.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ numerator and denominator coprime.
9393
9494
=head2 method base-repeating
9595
96-
method base-repeating(Rational:D: Int:D() $base)
96+
method base-repeating(Rational:D: Int:D() $base = 10)
9797
9898
Returns a list of two strings that, when concatenated, represent the number in
9999
base C<$base>. The second element is the one that repeats. For example:
@@ -112,6 +112,8 @@ If no repetition occurs, the second string is empty:
112112
The precision for determining the repeating group is limited to 1000
113113
characters, above that, the second string is C<???>.
114114
115+
C<$base> defaults to C<10>.
116+
115117
=end pod
116118

117119
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)