expt

AutoCad AutoLISP Functions

 
expt
 
 
 

Returns a number raised to a specified power

(expt number power) 

Arguments

number

Any number.

power

The power to raise number to.

Return Values

If both arguments are integers, the result is an integer; otherwise, the result is a real.

Examples

Command: (expt 2 4)

16

Command: (expt 3.0 2.0)

9.0