只需一步,快速开始
LISP中有没有字符转数字的函数呀!
比如取文本 "123",如何转换成整数123
我只知道ITOA能把整数123转字符"123".
使用道具 举报
解决了!!!
功能及参数
此函数可用来将字符串转换成实型数。
范例
(atof "97.1") 返回 97.1
(atof "3") 返回 3.
1、可用函数(READ string) ;
2、可用函数(ATOI string);(整数时)
3、可用函数(ATOF string 2 0);(整数时)
4、可用函数(DISTOF string 2)。
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-5-18 19:27 , Processed in 0.182609 second(s), 25 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.