Anonymous user
Non-decimal radices/Convert: Difference between revisions
added common lisp
(added ruby) |
(added common lisp) |
||
Line 99:
return result;
}</cpp>
=={{header|Common Lisp}}==
<lisp>(setq *print-base* 16)
(write-to-string 26) ; returns the string 1A
(setq *read-base* 16)
(read-from-string "1a") ; returns the integer 26</lisp>
=={{header|D}}==
|