Convert exponential to numberic



IBM's Command List programming language & Restructured Extended Executor

Convert exponential to numberic

Postby storage » Sat Jul 24, 2010 6:23 pm

Hello All,

I have done some calculations and the output is exponential.
Can someone please suggest how to convert the exponential to proper numberic using Rexx.
I donot want the last digits to be converted to zero.
Example
Input:1.11111E+12
Output:1111111111111


Thanks
storage
 
Posts: 28
Joined: Tue Nov 11, 2008 3:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Convert exponential to numberic

 

Re: Convert exponential to numberic

Postby NicC » Sat Jul 24, 2010 7:09 pm

I do not know if it is possible. You can get the answer to display in scientific form by setting the value of DIGITS to more than the default of 9 by using NUMERIC DIGITS(x) where x is the value to set DIGITS to. Setting it to 13 for the example shown gives a result of 1111110000000. If your 1.11111E+12 is calculate within your rexx program set DIGITS before doing your calculation.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Convert exponential to numberic

Postby NicC » Wed Jul 28, 2010 1:16 am

pathfinderravi7 wrote:im do an upgrade on my contract phone shortly and unsure which to go for.i know DFG suggested an android...galaxy portal,if im not mistaken.
with all the new ones coming out like the wave,it makes it so confusing
[/url]

This looks like spam to me
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Convert exponential to numberic

Postby dick scherrer » Wed Jul 28, 2010 3:18 am

Hi Nic,

Or just a lost soul. . .

'Tis gone :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post