Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3180

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 3180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>