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 1fd4b0f commit 7c52912Copy full SHA for 7c52912
doc/Type/Int.pod6
@@ -105,8 +105,8 @@ the method is called on a non-C<Int> number.
105
say ⅔.polymod(⅓); # OUTPUT: «(0 2)»
106
say 5.Rat.polymod(.3, .2); # OUTPUT: «(0.2 0 80)»
107
108
- my @digits-in-base37 = 9123607.polymod(37 xx *);
109
- say @digits-in-base37.reverse # OUTPUT: «[4 32 4 15 36]»
+ my @digits-in-base37 = 9123607.polymod(37 xx *); #Base conversion
+ say @digits-in-base37.reverse # OUTPUT: «[4 32 4 15 36]»
110
111
112
To illustrate how the C<Int>, non-lazy version of polymod works, consider
0 commit comments