Anonymous user
Non-decimal radices/Output: Difference between revisions
m
→{{header|Perl 6}}
(Added F# information) |
|||
Line 955:
=={{header|Perl 6}}==
Calling the <code>.base</code> method on a number returns a string. It can handle all bases between 2 and 36:
<lang perl6>say 30.base(2); # "11110"
|