Jump to content

Non-decimal radices/Output: Difference between revisions

m
(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"
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.