Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Converting Exponential output to normal one

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Converting Exponential output to normal one
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 12, 2007 10:07 pm    Post subject:
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    Post subject: Re: Converting Exponential output to normal one
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Jun 13, 2007 9:44 pm    Post subject: Re: Converting Exponential output to normal one
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

Site Director


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

PostPosted: Wed Jun 13, 2007 11:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us