明经通道 AutoLISP 函数   
atoi
 

将一个字符串转换成整数

(atoi string) 

参数

string

要转换为整数的字符串。

返回值

整数。

示例

Command: (atoi "97.1A")
97

Command: (atoi "A97.1A")
0

Command: (atoi "3.0")
3

Command: (itoa 37)
"37"

参阅

itoa 函数。

明经通道 版权所有 未经许可 不得传播

 评论