User Tools

Site Tools


modding:function:divide

divide

divide

divide

Syntax (divide x y) → z
Arguments x: The dividend of the two numbers.
y: The divisor of the two numbers.
Returns z: The result of the two numbers divided with everything after the decimal point dropped.
Category math
Description Returns the result of the two numbers divided and dropping everything after the decimal point.

Example

(divide 5 3)

This will return a 1.

(divide 5 2)

This will return a 2.

(divide 5 (add 1 1))

This will also return a 2. Return to Functions list

modding/function/divide.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1