Four is magic: Difference between revisions
Content added Content deleted
(Added Sidef) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Update for module change) |
||
Line 716: | Line 716: | ||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |
||
{{works with|Rakudo|2017.09}} |
{{works with|Rakudo|2017.09}} |
||
Lingua::EN::Numbers |
Lingua::EN::Numbers module available from the [https://modules.perl6.org/search/?q=Lingua%3A%3AEN%3A%3ANumbers%3A%3ACardinal Perl 6 ecosystem]. |
||
<lang perl6>use Lingua::EN::Numbers |
<lang perl6>use Lingua::EN::Numbers; # Version 2.4.0 or higher |
||
sub card ($n) { cardinal($n).subst(/','/, '', :g) } |
sub card ($n) { cardinal($n).subst(/','/, '', :g) } |
||
Line 757: | Line 757: | ||
One hundred fifteen quattuorvigintillion seven hundred ninety-two trevigintillion eighty-nine duovigintillion two hundred thirty-seven unvigintillion three hundred sixteen vigintillion one hundred ninety-five novemdecillion four hundred twenty-three octodecillion five hundred seventy septendecillion nine hundred eighty-five sexdecillion eight quindecillion six hundred eighty-seven quattuordecillion nine hundred seven tredecillion eight hundred fifty-three duodecillion two hundred sixty-nine undecillion nine hundred eighty-four decillion six hundred sixty-five nonillion six hundred forty octillion five hundred sixty-four septillion thirty-nine sextillion four hundred fifty-seven quintillion five hundred eighty-four quadrillion seven trillion nine hundred thirteen billion one hundred twenty-nine million six hundred thirty-nine thousand nine hundred thirty-six is eight hundred sixty-nine, eight hundred sixty-nine is twenty-four, twenty-four is eleven, eleven is six, six is three, three is five, five is four, four is magic.</pre> |
One hundred fifteen quattuorvigintillion seven hundred ninety-two trevigintillion eighty-nine duovigintillion two hundred thirty-seven unvigintillion three hundred sixteen vigintillion one hundred ninety-five novemdecillion four hundred twenty-three octodecillion five hundred seventy septendecillion nine hundred eighty-five sexdecillion eight quindecillion six hundred eighty-seven quattuordecillion nine hundred seven tredecillion eight hundred fifty-three duodecillion two hundred sixty-nine undecillion nine hundred eighty-four decillion six hundred sixty-five nonillion six hundred forty octillion five hundred sixty-four septillion thirty-nine sextillion four hundred fifty-seven quintillion five hundred eighty-four quadrillion seven trillion nine hundred thirteen billion one hundred twenty-nine million six hundred thirty-nine thousand nine hundred thirty-six is eight hundred sixty-nine, eight hundred sixty-nine is twenty-four, twenty-four is eleven, eleven is six, six is three, three is five, five is four, four is magic.</pre> |
||
=={{header|Phix}}== |
=={{header|Phix}}== |