The following table provides summary descriptions of the AutoLISP arithmetic functions.
Arithmetic functions |
|
---|---|
Function |
Description |
( |
Returns the sum of all numbers |
( |
Subtracts the second and following numbers from the first and returns the difference |
( |
Returns the product of all numbers |
( |
Divides the first number by the product of the remaining numbers and returns the quotient |
( |
Returns the bitwise NOT (1's complement) of the argument |
( |
Returns the argument increased by 1 (incremented) |
( |
Returns the argument reduced by 1 (decremented) |
( |
Returns the absolute value of the argument |
( |
Returns the arctangent of a number in radians |
( |
Returns the cosine of an angle expressed in radians |
( |
Returns the constant e (a real) raised to a specified power (the natural antilog) |
( |
Returns a number raised to a specified power |
( |
Returns the conversion of a real into the nearest smaller integer |
( |
Returns the conversion of a number into a real |
( |
Returns the greatest common denominator of two integers |
( |
Returns the natural log of a number as a real |
( |
Returns the result of the logical bitwise AND of a list of integers |
( |
Returns the result of the logical bitwise inclusive OR of a list of integers |
( |
Returns the logical bitwise shift of an integer by a specified number of bits |
( |
Returns the largest of the numbers given |
( |
Returns the smallest of the numbers given |
( |
Verifies that a number is negative |
( |
Divides the first number by the second, and returns the remainder |
( |
Returns the sine of an angle as a real expressed in radians |
( |
Returns the square root of a number as a real |
( |
Verifies that a number evaluates to zero |