Convert decimal number to rational: Difference between revisions
→{{header|Raku}}: Fix comment: Perl 6 --> Raku
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) (→{{header|Raku}}: Fix comment: Perl 6 --> Raku) |
||
Line 2,145:
=={{header|Raku}}==
(formerly Perl 6)
Decimals are natively represented as rationals in
<lang perl6>say .nude.join('/') for 0.9054054, 0.518518, 0.75;</lang>
{{out}}
|