2007 Sep 07 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,
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,
2007 Sep 07 6:54 AM
2007 Sep 07 6:55 AM
define it as integer length 16th
or if u use packed decimal data : a type p decimals 0.
2007 Sep 07 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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |