PRODUCT

Syntax

PRODUCT number number

Explanation

PRODUCT outputs the product of its inputs. PRODUCT expects two inputs, but will accept more if it and all its inputs are enclosed in parentheses.

PRODUCT is equivalent to *.

Examples

? PRODUCT 2 3

Result: 6

? PRODUCT 4 -1.2

Result: -4.80

? PRODUCT -.5 -1.5

Result: 0.75

? (PRODUCT 2 3 4 5)

Result: 120

? TO CUBE :NUM

> PRINT (PRODUCT :NUM :NUM :NUM)

? END

CUBE defined.

? CUBE 3

27

?