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 

ROUNDED in cobol

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


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Thu Mar 26, 2009 5:11 pm    Post subject: ROUNDED in cobol Reply with quote

Hello friends,

could you please help me in below question

declared

05 VAR1 S9(5)V99
05 VAR2 S9(5)V99 value 2070

Compute VAR1 ROUNDED = VAR2 * 1.4

what is the value of VAR1

thank you
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Mar 26, 2009 6:40 pm    Post subject: Reply with quote

js01,

What makes you think posting it as separate topic would get you the answer? bonk . Either way unless this is a trick question , VAR1 would have 2898. 00 (untested)

Why is this even a question in the first place. Rolling Eyes

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Mar 27, 2009 6:28 am    Post subject: Reply with quote

Hi,

What happened when you try this at your end? May be if you try the code with or with out ROUNDED you get a better understanding.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Fri Mar 27, 2009 9:39 am    Post subject: Reply with quote

Kolusu/Anju,

Thanks for your qucik repsonce,

the above login in one of our program and the result is 1739 , i'm not able to undetsand why this value is getting? ...the value should be 2898

could you please explain
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Sat Mar 28, 2009 10:29 pm    Post subject: Reply with quote

Quote:
the above login in one of our program and the result is 1739 , i'm not able to undetsand why this value is getting? ...the value should be 2898
Information which we have in hand so far does not give any clue why would this haapen. Please show us the "actual code" used in that program . . .

js01 wrote:
Kolusu/Anju,
I'm Anuj by the way . . .
_________________
Regards,
Anuj
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