## Convert exponential to numberic

IBM's Command List programming language & Restructured Extended Executor

### Convert exponential to numberic

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

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: 2514
Joined: Sun Jul 04, 2010 12:13 am
Location: Down on the pig farm
Has thanked: 4 times
Been thanked: 86 times

### Re: Convert exponential to numberic

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: 2514
Joined: Sun Jul 04, 2010 12:13 am
Location: Down on the pig farm
Has thanked: 4 times
Been thanked: 86 times

### Re: Convert exponential to numberic

Hi Nic,

Or just a lost soul. . .

'Tis gone

d

dick scherrer
Global moderator

Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times