IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Converting Exponential output to normal one


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muralithirumalaisamy
Warnings : 1

New User


Joined: 13 Jun 2005
Posts: 12
Location: chennai

PostPosted: Tue Jun 12, 2007 9:38 pm
Reply with quote

Hi,

Can anybody Guide me to solve the below problem

Im working with rexx language this is regarding the same

When im adding 87434358749 + 1 im getting the output as 8.743435E+10 and not as 87434358750

Buit as per my requirement i need the output as 87434358750

Is thre any function in rexx to get that output
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 12, 2007 10:07 pm
Reply with quote

Have you tried increasing the numeric field length from the default of 9

NUMERIC DIGITS(12)
Back to top
View user's profile Send private message
muralithirumalaisamy
Warnings : 1

New User


Joined: 13 Jun 2005
Posts: 12
Location: chennai

PostPosted: Wed Jun 13, 2007 9:07 pm
Reply with quote

Hi,

See in REXX there is no need to declare any field u can straight a way use that

That is the compatibility in ress..

So i Believe this will not help by any means

Thanks
Murali
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 13, 2007 9:44 pm
Reply with quote

Quote:
So i Believe this will not help by any means


You believe wrong !
expat is right

please try this

Code:

say "default numeric digits"
a = 87434358749 + 1
say " a= " a

say "        numeric digits 11 "
numeric digits 11 
a = 87434358749 + 1
say " a= " a

say "        numeric digits 12 "
numeric digits 12
a = 87434358749 + 1
say " a= " a


In REXX You do not declare each field' s characteristics,
with "NUMERIC DIGITS" and "NUMERIC FUZZ" You give to the rexx interpreter a default on how to carry on arithmetics and comparisons



regards
e.s
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 13, 2007 11:55 pm
Reply with quote

Hello,

If you disagree with a suggestion someone has posted
Quote:
Hi,
See in REXX there is no need to declare any field u can straight a way use that
That is the compatibility in ress..
So i Believe this will not help by any means
Thanks
Murali
it is a good to test your response before posting it. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top