divide: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page divide to Divide without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:16, 9 February 2023

divide() Function

Divides the first number by the second number, and then divides that result by the third number --if present-- and so on for all the numbers passed to the function.

Usage

[h: props = divide(num, num, ...)]

Examples

[r: divide(4, 2)]

Returns 2.

[r: divide(24, 2, 2)]
Returns 6.