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 codewa
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 ma
> 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 pl
I am having trouble finding the modulus operator/function in codewarrior for
the Palm. Is there some library I need to include, or what?
I know that it is usually just the % operator, but that seems to be
unrecognized...
Thanks.
Very truly yours,
Rob G.
--
For information on using the