|
-
Aug 29th, 2002, 04:36 PM
#1
How does the MOD function work.
I am looking for a mathematical function which can duplicate what the MOD function can do in Visual Basic. Basically I want to a function which on supplying two numbewrs will return just the remainder as an integer. Such that:
17 / 3 = 5 r2
(3 * 5) + 2 = 17
2 = 17 - (3 * 5)
a = Integer Part Of Answer
d = Denominator
n = Numerator
r = Remainder
r = n - (a * d)
Does anyone have any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|