MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find remainder in Easytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
pvrajesh31
Beginner


Joined: 10 Aug 2004
Posts: 31
Topics: 11

PostPosted: Tue Jun 03, 2008 4:26 pm    Post subject: How to find remainder in Easytrieve Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Tue Jun 03, 2008 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
pvrajesh31
Beginner


Joined: 10 Aug 2004
Posts: 31
Topics: 11

PostPosted: Tue Jun 03, 2008 5:29 pm    Post subject: Reply with quote

Thanks Kolusu.
_________________
Rajesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group