converting number to string in lisp -
i tried find lisp function convert between numbers , strings , after little googling fond function same name. when entered (itoa 1)
slime printed:
undefined function itoa called arguments (1) .
how can conversion?
from number string:
(write-to-string 5) "5"
you may transform string numerical notation:
(write-to-string 341 :base 10) "341"
from string number:
(parse-integer "5") 5
with trash
(parse-integer " 5 not number" :junk-allowed t) 5
or use this:
(read-from-string "23 absd") 23