Find palindromic numbers in both binary and ternary bases: Difference between revisions

→‎{{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: &nbsp; 0 &nbsp; (zero). <br> <br> }}
 
We can use <tt>[format %b]</tt> to format a number as binary, but ternary requires a custom proc: