Re: Modulus?

2001-07-23 Thread Dave Lippincott
it is % but it works for integers only - Original Message - From: <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 10:43 AM Subject: Modulus? > I am having trouble finding the modulus operator/function in codewarrior for > the Palm. Is ther

RE: Modulus?

2001-07-23 Thread Peter Epstein
If you're working with positive integers, the % operator in C will give you the modulus. Here is an uncompiled example: UInt16 a, b, c; a = 106; b = 5; c = a % b; Result: c == 1 If either of your arguments to the modulus function can be negative, the behavior of the % operator is machine depen

RE: Modulus?

2001-07-23 Thread Fergal Moran
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > I am having trouble finding the modulus operator/function in Hmm - it always works for me > I know that it is usually just the % operator, but that seems to be > unrecognized... can you post some code and error messages please Fergal. --