stackexchange Posted September 16, 2014 Report Share Posted September 16, 2014 I manipulating some variables and i need to do modulus division as I need the remainder of 2 numbers i'm computing. How can I do modulus division? thanks! Quote Link to comment Share on other sites More sharing options...
Cory Posted September 16, 2014 Report Share Posted September 16, 2014 Divide the two integers. Macro Express always rounds down. Then subtract the product of the quotient and the original numerator from the original denominator. EG 8 divided by 3: 8 / 3 = 2. Now 8 - (3 * 2) = 2. IE a remainder of 2. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.