Anonymous user
Find palindromic numbers in both binary and ternary bases: Difference between revisions
Find palindromic numbers in both binary and ternary bases (view source)
Revision as of 20:35, 22 February 2016
, 8 years ago→{{header|Tcl}}: flagged the output section as incorrect: didn't display zero.
(→{{header|REXX}}: added a 2nd REXX version.) |
(→{{header|Tcl}}: flagged the output section as incorrect: didn't display zero.) |
||
Line 572:
=={{header|Tcl}}==
{{incorrect|Tcl| <br> <br> The '''output''' section doesn't list the first number: 0 (zero). <br> <br> }}
We can use <tt>[format %b]</tt> to format a number as binary, but ternary requires a custom proc:
|