SYNTAX

<Integer1>.div(<Integer2>)

Returns an Integer equal to the whole number of times that <Integer2> divides into <Integer1>. Any remainder is discarded.

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

This sample Rulesheet uses .div to calculate the whole number of times 3 divides into integer2, and assigns the resulting value to integer1 .

A sample Ruletest provides integer2 values for three examples. Input and Output panels are shown below.