blob: 9d91928844f4c1acee18b1ce3c6f38160e3e1a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# div --- do integer division
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# July, 2014
function div(numerator, denominator, result, i)
{
split("", result)
numerator = int(numerator)
denominator = int(denominator)
result["quotient"] = int(numerator / denominator)
result["remainder"] = int(numerator % denominator)
return 0.0
}
|