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

Convert number

Former Member
0 Likes
473

Hi

i have type float with value 1.5000000E03

i want to present the number 1500 instead of 1.5000000E03

Maybe there is any Fm that can do it?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
443

data: f like AUSP-ATFLV.

data: p type p decimals 2.

f = '1.1100000000000000E+03'.

p = f.

write: f, p.

***************

Just check this code..

data: a type ausp-atflv.

data: b type p decimals 2.

a = '1.1100000000000000E+00'.

b = a .

write b.

**************

DATA float TYPE f value '1.1100000000000000E+03'.

WRITE (6) float EXPONENT 0.

**********

Try this.

Regards

vasu

3 REPLIES 3
Read only

Former Member
0 Likes
444

data: f like AUSP-ATFLV.

data: p type p decimals 2.

f = '1.1100000000000000E+03'.

p = f.

write: f, p.

***************

Just check this code..

data: a type ausp-atflv.

data: b type p decimals 2.

a = '1.1100000000000000E+00'.

b = a .

write b.

**************

DATA float TYPE f value '1.1100000000000000E+03'.

WRITE (6) float EXPONENT 0.

**********

Try this.

Regards

vasu

Read only

Former Member
0 Likes
443

Hi,

Move the value to integer and it will display it as per your requirment.

data : f type f value '1.5000000E03'.

data : i type i.

i = f.

write : i .

Regards

Shiva

Read only

Former Member
0 Likes
443

Hi

Consider the code below, its serves your requirement, make changes accordingly

data:

expo type ANZ_TAGE,

temp(16) type p decimals 14.

expo = '3.9604320000000000E+08'.

move expo to temp.

write: expo,temp.