|
-
Nov 2nd, 2000, 01:41 PM
#1
Thread Starter
Addicted Member
Does anyone have any modules or code that allow VB to perform the mathematical 'mod' function?
-
Nov 2nd, 2000, 01:55 PM
#2
Monday Morning Lunatic
Try Abs(). Although this won't work with complex numbers...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 2nd, 2000, 01:56 PM
#3
Fanatic Member
-
Nov 2nd, 2000, 02:02 PM
#4
Monday Morning Lunatic
Nope...Mod returns the remainder - it's a logical operator. Mathematical modulus returns the magnitude of something. For example:
|-1| = 1
|(5)| = sqrt(5^2 + 3^2) = 5.8309
|(3)|
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 2nd, 2000, 02:03 PM
#5
Fanatic Member
Originally posted by parksie
Nope...Mod returns the remainder.
I thought he wanted that...
-
Nov 2nd, 2000, 02:12 PM
#6
Monday Morning Lunatic
I'm not actually sure what he wants, but he now has both possibilities .
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|