[integer->div] returns a pair containing the quotient and the remainder.
The LHS integer is the dividend, the RHS parameter is the divisor.
Dividend Integer->div(divisor integer)
Use the [integer->div] method.
Code
local(test = 12)
local(result = #test->div(7))
'Quotient: '+#result->first
'\rRemainder: '+#result->second
Result
Quotient: 1 Remainder: 5
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments