2008 Jul 16 3:14 PM
Hi experts!
I need help,
TYPES: dato TYPE F.
DATA: CANTIDAD TYPE dato.
CANTIDAD = 1200/ 5
And this return me 2.4000000000000000E+02 I need to format this number into 240 can anybody tell me how?
Thanks a lot
Regards,
Rebeca
2008 Jul 16 3:19 PM
please try with this data declaration.
DATA: CANTIDAD TYPE p decimals 0.
Shreekant
2008 Jul 16 3:19 PM
please try with this data declaration.
DATA: CANTIDAD TYPE p decimals 0.
Shreekant
2008 Jul 16 3:21 PM
2008 Jul 16 3:23 PM
Hi,
you can do it as shreekant said, or assign the result back to a variable of type p.
TYPES: dato TYPE F.
DATA: CANTIDAD TYPE dato.
data: result type p decimals 0.
CANTIDAD = 1200 / 5.
result = CANTIDAD.
write: CANTIDAD,
result.