Conversion Functions

AutoCAD AutoLISP & Visual LISP

 
Conversion Functions
 
 
 

The following table provides summary descriptions of the AutoLISP conversion functions.

Conversion functions

Function

Description

(angtof string [mode])

Converts a string representing an angle into a real (floating-point) value in radians

(angtosangle [mode [precision]])

Converts an angular value in radians into a string

(asciistring)

Returns the conversion of the first character of a string into its ASCII character code (an integer)

(atofstring)

Returns the conversion of a string into a real

(atoistring)

Returns the conversion of a string into an integer

(chrinteger)

Returns the conversion of an integer representing an ASCII character code into a single-character string

(cvunit value from to)

Converts a value from one unit of measurement to another

(distof string [mode])

Converts a string that represents a real (floating-point) value into a real value

(itoaint)

Returns the conversion of an integer into a string

(rtosnumber [mode [precision]])

Converts a number into a string

(transpt from to [disp])

Translates a point (or a displacement) from one coordinate system to another