Conversion Functions Reference (AutoLISP)

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

(angtos angle [mode [precision]])

Converts an angular value in radians into a string

(ascii string)

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

(atof string)

Returns the conversion of a string into a real

(atoi string)

Returns the conversion of a string into an integer

(chr integer)

Converts an integer representing a Unicode 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

(itoa int)

Returns the conversion of an integer into a string

(rtos number [mode [precision]])

Converts a number into a string

(trans pt from to [disp])

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