converting number to string in lisp

前端 未结 3 1878
失恋的感觉
失恋的感觉 2021-02-01 18:08

I tried to find a lisp function to convert between numbers and strings and after a little googling I fond a function with the same name. when I entered (itoa 1) SLI

3条回答
  •  臣服心动
    2021-02-01 18:35

    FYI: I believe (itoa #) is only a function in AutoLISP - the LISP variant embedded in AutoCAD drafting software. AutoLISP has far fewer functions than Common Lisp and sometimes identical functions with a different name or functions with the same name that operate differently.

    That's probably why it didn't work for you. I use AutoLISP regularly and (itoa #) would do exactly what you want there.

提交回复
热议问题