View previous topic :: View next topic |
Author |
Message |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jun 03, 2008 4:26 pm Post subject: How to find remainder in Easytrieve |
|
|
Hi
I have to devide 10 digit number with 4 digit number and find the remainder of the division in a easytrieve program.
Please help me in finding out this.
Regards,
Rajesh _________________ Rajesh |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
Posted: Tue Jun 03, 2008 4:49 pm Post subject: |
|
|
pvrajesh31,
isnt it simple math?
Code: |
Remainder = A - ((A / B) * B)
|
ex:
Code: |
A = 10
B = 3
10 - ((10/3) * 3) = 10 -(3 * 3) = 1
|
|
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jun 03, 2008 5:29 pm Post subject: |
|
|
Thanks Kolusu. _________________ Rajesh |
|
Back to top |
|
 |
|
|