Hi,
Observe the below code which is useful for you .
**************************************************
REPORT RAMESH.
*trunc, ceil and
data:A TYPE P LENGTH 5 DECIMALS 2,
B TYPE P LENGTH 5 DECIMALS 2,
C TYPE P LENGTH 5 DECIMALS 2,
A1 TYPE I,
B1 TYPE I,
C1 TYPE I.
A = '7.5'.
A1 = CEIL( A ).
WRITE:/ A1.
B = '4.3'.
B1 = TRUNC( B ).
WRITE: / B1.
C = '5.67'.
C1 = CEIL( C ).
WRITE:/ C1.
************************************************
Regards
Ramesh mavilla.
Add comment