Non-decimal radices/Input: Difference between revisions
Added Quackery.
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(Added Quackery.) |
||
Line 1,089:
</pre>
Python 2.6 supports both the above formats, because it supports both types of literals.
=={{header|Quackery}}==
As a dialogue in the Quackery shell.
{{out}}
<pre>/O> $ "1234567890" $->n drop ( 'drop' because $->n returns a number AND a success flag )
... echo cr
...
1234567890
Stack empty.
/O> 19 base put ( parse string as base 19 )
... $ "174B57C7" $->n drop
... base release
... echo cr
...
1234567890
Stack empty.
/O> 36 base put ( largest base handled by Quackery )
... $ "KF12OI" $->n drop
... base release
... echo cr
...
1234567890
Stack empty.</pre>
=={{header|R}}==
|