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

CONVERTING A VALUE WITH EXPONENT

Former Member
0 Likes
524

Hi ,

I have a field IMRG_INS-READG which contains a value

3.9604320000000000E+08 . I want to remove the exponent . After which it shold be 12 . Which is the actual value . How to do it

Regards

5 REPLIES 5
Read only

Former Member
0 Likes
490

can u be a bit more specific,

What is the data type of IMRG_INS-READG?

Read only

0 Likes
490

Hi ,

Data type of imrg_ins-readg is fltp.

Regards

Read only

0 Likes
490

Hii Neetesh..

Try this code: it may suit ur Req:

data : var1 type f value '234.56'.

data : dec1(20).

write var1 to dec1 decimals 2 EXPONENT 0.

write:/ dec1.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
490
data: lv_swap type p length 10 decimals 2.

write imrg_ins-readg to lv_swap.

write lv_swap.

result: 396043200,00

Read only

Former Member
0 Likes
490

consider the code below

REPORT ZTRIP_TEST.

data:

expo type ANZ_TAGE,

temp(16) type p decimals 14.

expo = 12.

move expo to temp.

write: expo,temp.

Reward points if useful, get back in case of query...

Cheers!!!