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

how to convert exponential value

Former Member
0 Likes
1,142

hi,

how to convert exponetial value into normal form.

ex: 7,3205E+12 to 000007320500001851.

is there any function module exists or we need to write any logic.

thanks and regards,

pavan.

hi,

how to convert exponetial value into normal form.

ex: 7,3205E+12 to 000007320500001851.

is there any function module exists or we need to write any logic.

thanks and regards,

pavan.

2 REPLIES 2
Read only

Former Member
0 Likes
801

The way a floating point number is formatted depends on whether an exponent is specified. The mantissa is adjusted by shifting the decimal point and, if necessary, introducing leading zeros, according to the exponent chosen. Using an exponent value of 0 means that the exponent representation will not be used for displaying the symbol.

Syntax

&symbol(EN)&

If you specify an exponent of 0, then the number is displayed without using the exponent representation. This has the same effect as completely omitting the specification of an exponent: &symbol(E0)& has the same effect as &symbol(E)&

In this example, the PLMK-SOLLWERT field is assumed to have the value 123456.78 and to be of data type FLTP.

&PLMK-SOLLWERT& -> 1.23456780000000E05

&PLMK-SOLLWERT(E3)& -> 123.456780000000E03

&PLMK-SOLLWERT(E6)& -> 0.12345678000000E06

&PLMK-SOLLWERT(E0)& -> +123456.780000000

&PLMK-SOLLWERT(E)& -> +123456.780000000

Read only

amit_khare
Active Contributor
0 Likes
801

Check this routine -

data: a type string value '10E+02'.

data: b type f.

data: c type p.

b = a.

c = b.

write:/ b, c.

Hope this will help you.

Regards,

Amit