QUOTIENT

Synopsis
QUOTIENT dividend divisor
(QUOTIENT divisor)
dividend / divisor
Description

Outputs the quotient of its inputs. That is, it outputs dividend divided by divisor. QUOTIENT outputs an integer if and only if dividend is a multiple of divisor. For example, QUOTIENT 5 2 is 2.5, not 2, but QUOTIENT 4 2 is 2, not 2.0.

When the single input form is called, QUOTIENT outputs the reciprocal of the input.

It is an error to call QUOTIENT with a divisor of 0.

Example
SHOW 5 / 2
2.5
SHOW (QUOTIENT 5 2)
2.5
SHOW (QUOTIENT 2)
0.5

SourceForge.net Logo