• progeCAD in French Language
  • progeCAD in Spanish Language
  • progeCAD in English Language

(atoi)

(atoi)

(atoi string)


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

(angtof string [mode])

(ascii string)

(atof string)

(chr integer)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language

 
DWG is the native file format for Autodesk AutoCAD®. Autodesk and AutoCAD are registered trademarks or trademarks of Autodesk, Inc. in the USA and/or other countries. progeSOFT and progeCAD are registered trademarks or trademarks of progeCAD s.r.l. in the USA and/or other countries.