2013

Table Of Contents
getvar(userr2)
See also:
Use the Command Prompt Calculator
Convert Units of Measurement
The cvunit function converts either a number or a point from one unit of
measurement to another. See the acad.unt file for a list of units that you can
convert. The syntax is
cvunit(value, from_unit, to_unit)
The following example converts the value 1 from inches to centimeters:
cvunit(1,inch,cm)
See also:
Use the Command Prompt Calculator
Use Standard Numeric Functions
CAL supports the standard numeric functions in the following table.
Numeric functions
DescriptionFunction
Sine of the anglesin(angle)
Cosine of the anglecos(angle)
Tangent of the angletang(angle)
Arcsine of the number; the number must be between -1 and 1asin(real)
Arccosine of the number; the number must be between -1 and 1acos(real)
172 | Chapter 2 Commands