09-07-2007 6:52 AM
Hi,
How to round the 16 digit value ,for that which function module used please suggest me.
ex:126578678623423.67 =126578678623424
126578678623423.37 =126578678623423
like that.
Thanks,
Hari,
09-07-2007 6:54 AM
09-07-2007 6:55 AM
define it as integer length 16th
or if u use packed decimal data : a type p decimals 0.
09-07-2007 7:05 AM
data zint type p LENGTH 16 DECIMALS 2 value '126578678623423.67'.
data zround TYPE p LENGTH 16 DECIMALS 0.
data zint1 type p LENGTH 16 DECIMALS 2 value '126578678623423.37'.
zround = zint.
WRITE / zround.
zround = zint1.
WRITE / zround.