‎2007 Oct 01 12:32 PM
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
‎2007 Oct 01 12:35 PM
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
‎2007 Oct 01 12:35 PM
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
‎2007 Oct 01 12:36 PM
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
‎2007 Oct 01 12:38 PM
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.