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

(atof)

(atof)

(atof string)


Convert the string to a real number.


This function converts a string into a real number. This command returns 0.0 if the text of the string is not recognizable as a number.

Examples

Code Returns
(atof "59") 59.0
(atof "213.35") 213.350
(atof ".1") 0.100000
(atof "Hello") 0.000000

(angtof string [mode])

(ascii string)

(atoi 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.