Arbitrary-precision integers (included): Difference between revisions
Content added Content deleted
(→{{header|Raku}}: no need to quote numbers) |
(→{{header|Raku}}: print number of digits) |
||
Line 1,966: | Line 1,966: | ||
{{works with|Rakudo|2022.07}} |
{{works with|Rakudo|2022.07}} |
||
<syntaxhighlight lang="raku" line> |
<syntaxhighlight lang="raku" line> |
||
given [**] 5, 4, 3, 2 { |
|||
⚫ | |||
use Test; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
printf 'This number has %d digits', .chars; |
|||
}</syntaxhighlight> |
|||
{{out}} |
{{out}} |
||
<pre>ok 1 - 5**4**3**2 has expected first and last twenty digits |
<pre>ok 1 - 5**4**3**2 has expected first and last twenty digits |
||
This number has 183231 digits</pre> |
|||
=={{header|REXX}}== |
=={{header|REXX}}== |