Convert the string to an integer.
The atoi function converts a string into an integer. If the string contains numbers after the decimal point, it truncates them. This command returns 0 if the text of the string is not recognizable as a number.
Examples
Code | Returns |
---|---|
(atoi "-25") | -25 |
(atoi "37.8") | 37 |
(atoi "Hello") | 0 |
Tell me about...
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |