Numerical and alphabetical suffixes: Difference between revisions
Numerical and alphabetical suffixes (view source)
Revision as of 22:24, 28 October 2018
, 5 years ago→{{header|Perl 6}}: Commentary on output format requirements
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: fat fingered the IEEE standard) |
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Commentary on output format requirements) |
||
Line 138:
=={{header|Perl 6}}==
{{works with|Rakudo|2018.09}}
Scientific notation, while supported in Perl 6, is limited to
Note: I am blatantly and deliberately ignoring the pointless & silly task guidelines for formatting the output. It's fluff and has no bearing on the core of the task. If you really, ''really'','' '''REALLY''' ''want to see badly formatted, stupid output, uncomment the last line.
<lang perl6><PAIRs 2 SCOres 20 DOZens 12 GRoss 144 GREATGRoss 1728
Line 178 ⟶ 180:
}
my $tests = q:to '===';
printf "%16s: %s\n", $_, comma .&units for <▼
===
# Task required stupid layout
# say "\n In: $_\nOut : ", .words.map({comma .&units}).join(' ') for $test.lines;</lang>
{{out}}
<pre> 2greatGRo: 3,456
|