next up previous
Contents Next: + (FUNCTION) Up: Appendix: Selected LISP Previous: Appendix: Selected LISP

* (FUNCTION)

Format: (* <num1> <num2> ...)

Required arguments: None.

Argument expressions must evaluate to numbers.

Argument expressions are evaluated and their product is computed. See below for special cases of zero or one arguments.

Examples:

>(* 4 5 6)
120

>(* 123.5 12/3)
494.0

>(* (* 2 3) 8)
48

>(* 'a 1)
Error: A is not of type NUMBER.

Special cases:

>(* 3)
3

>(*)
1



© Colin Allen & Maneesh Dhagat
November 1999