Page 1 of 1

Convert exponential to numberic

PostPosted: Sat Jul 24, 2010 6:23 pm
by storage
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

Re: Convert exponential to numberic

PostPosted: Sat Jul 24, 2010 7:09 pm
by NicC
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.

Re: Convert exponential to numberic

PostPosted: Wed Jul 28, 2010 1:16 am
by NicC
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

Re: Convert exponential to numberic

PostPosted: Wed Jul 28, 2010 3:18 am
by dick scherrer
Hi Nic,

Or just a lost soul. . .

'Tis gone :)

d