Discussion:
Getting the Remainder
(too old to reply)
Tim^^BOB
2003-10-23 23:39:25 UTC
Permalink
I was wondering how to get the remainder of a division statement and
put it into a variable so it can be used in my program. For example:

C = A / B

The anwser is rounded and I was wondering how to get the left over of
this question. I do not know the values of the variables in the code.

Thanks in advance to all repliers.
the Wiz
2003-10-24 03:11:24 UTC
Permalink
Post by Tim^^BOB
I was wondering how to get the remainder of a division statement and
C = A / B
The anwser is rounded and I was wondering how to get the left over of
this question. I do not know the values of the variables in the code.
Thanks in advance to all repliers.
C = A MOD B

More about me: http://www.jecarter.com/
VB3/VB6/NSBasic Palm/C/PowerBasic source code: http://www.jecarter.com/programs.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter ***@at mindspring dot.dot com. Fix the obvious to reply by email.
Tim^^BOB
2003-11-01 02:31:00 UTC
Permalink
Post by the Wiz
Post by Tim^^BOB
I was wondering how to get the remainder of a division statement and
C = A / B
The anwser is rounded and I was wondering how to get the left over of
this question. I do not know the values of the variables in the code.
Thanks in advance to all repliers.
C = A MOD B
More about me: http://www.jecarter.com/
VB3/VB6/NSBasic Palm/C/PowerBasic source code: http://www.jecarter.com/programs.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
Thanks Wiz.. Sorry for slow reply my internet was down! =)

Continue reading on narkive:
Loading...