Anonymous user
Non-decimal radices/Convert: Difference between revisions
→{{header|Perl 6}}: note that Int is a subtype of Real in Perl 6
(→{{header|Perl 6}}: use +, not val; generalize to non-ints) |
(→{{header|Perl 6}}: note that Int is a subtype of Real in Perl 6) |
||
Line 1,088:
$num.base($base);
}</lang>
These work on any real type including integer types.
=={{header|PHP}}==
|