Skip to Content
0
Jun 23, 2016 at 12:15 PM

What should happen when you add float and packed datatype values?

21 Views

REPORT ZDATATYPES.

data :

xyz type f VALUE '123',

pqr type p VALUE 12.

data : t type f.

t = xyz + pqr.

write : t.

"OUTPUT


1,3500000000000000E+02

Why the o/p comes with trailing zeroes? Is there a way to remove it without changing their datatypes?