Four is the number of letters in the ...: Difference between revisions

m
→‎{{header|Perl 6}}: Update for module change
m (moved the "Also see" references to the OEIS website, closed a quoted text ("), changed the two references to an "over/under" to be able to observ the difference more readily.)
m (→‎{{header|Perl 6}}: Update for module change)
Line 540:
=={{header|Perl 6}}==
{{works with|Rakudo|2017.09}}
Uses the Lingua::EN::Numbers::Cardinal module to generate both cardinal and ordinal numbers. This module places commas in number words between 3-orders-of-magnitude clusters. E.G. <code>12345678.&ordinal</code> becomes: twelve million, three hundred forty-five thousand, six hundred seventy-eighth. Uses a custom 'no-commas' routine to filter them out for accurate character counts. Generates the 'sentence' lazily so only the words needed are ever calculated and reified.
 
<lang perl6>use Lingua::EN::Numbers::Cardinal; # Version 2.4.0 or higher
 
my $index = 1;
10,327

edits