Digital root/Multiplicative digital root: Difference between revisions
Content added Content deleted
(rust example) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 3,660: | Line 3,660: | ||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
The size of some of the numbers here is such that we need to use BigInt. |
The size of some of the numbers here is such that we need to use BigInt. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./big" for BigInt |
||
import "/fmt" for Fmt |
import "./fmt" for Fmt |
||
// Only valid for n > 0 && base >= 2 |
// Only valid for n > 0 && base >= 2 |