Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Decimal Conversion

Former Member
0 Likes
339

Hi

I need to convert exponential form to decimal. is there any FM available..

For example

exp data is 1.1160000000000000E+04

output is 3.10..

Cheers

Christina

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
312

Hello,

I did the following code. the result is fine

data: exp type f VALUE '1.1160000000000000E+04',

exp2(5) type p decimals 2.

write: exp.

exp2 = exp.

write : exp2.

Out put is 1.1160000000000000E+04 11,160.00.

Hope it helps,

Raj

1 REPLY 1
Read only

Former Member
0 Likes
313

Hello,

I did the following code. the result is fine

data: exp type f VALUE '1.1160000000000000E+04',

exp2(5) type p decimals 2.

write: exp.

exp2 = exp.

write : exp2.

Out put is 1.1160000000000000E+04 11,160.00.

Hope it helps,

Raj