On Sun, 22 May 2005 15:53:19 -0500, gh <gh@at.ne> wrote:
I am dividing var1 by var2 and I want to check and see if there is a
remainder. How do I do this in C#?
TIA
Use the modulus (%) operator:
int var1 = 7;
int var2 = 4;
int quotient, remainder;
quotient = var1 / var2;
remainder = var1 % var2;
HTH
rossum
The ultimate truth is that there is no ultimate truth