Does anyone have any modules or code that allow VB to perform the mathematical 'mod' function?
Printable View
Does anyone have any modules or code that allow VB to perform the mathematical 'mod' function?
Try Abs(). Although this won't work with complex numbers...
Vb can do it.
Code:Msgbox 17 Mod 3
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 thought he wanted that...Quote:
Originally posted by parksie
Nope...Mod returns the remainder.
I'm not actually sure what he wants, but he now has both possibilities :).