* (multiply)

AutoCad AutoLISP Functions

 
* (multiply)
 
 
 

Returns the product of all numbers

(* [number number] ...) 

Arguments

number

A number.

Return Values

The result of the multiplication. If you supply only one number argument, this function returns the result of multiplying it by one; it returns the number. Supplying no arguments returns 0.

Examples

(* 2 3)                   returns  6 
(* 2 3.0)                 returns  6.0 
(* 2 3 4.0)               returns  24.0 
(* 3 -4.5)                returns  -13.5
(* 3)                     returns  3