What about a DIV function? (solved)
Posted: Mon Dec 04, 2006 5:52 pm
Hello!
Modulo already exists, but what do you think about a DIV function? This is a kind of division returning the number of how often y can be found in x. Sorry, but I don't know how to express that in english
What I mean is a kind of Integer-Division.
Just look at this
Modulo already exists, but what do you think about a DIV function? This is a kind of division returning the number of how often y can be found in x. Sorry, but I don't know how to express that in english

What I mean is a kind of Integer-Division.
Just look at this
Code: Select all
a=25
b=7
Macro DIV(x, y)
((x-x%y)/y)
EndMacro
; result will be 3, because: 25 / 7 = 3 + 4 / 7 (the rest, 4/7 will be ignored)
Debug DIV(a, b)