Google Search - Blog...........

ABAP - Mathematical Function Ceil() & Floor() - Report Programming

REPORT zceil_floor .


parameters: p_int type i ,
p_int1 type i .

data: value type p decimals 2 ,
value1 type p decimals 2 ,
value2 type p decimals 2 .


start-of-selection.

value = p_int / p_int1 .

value1 = ceil( value ) .
value2 = floor( value ) .


write:/ 'the actual value is : ' , value .

write:/ 'value using the ceil function : ' , value1 .

write:/ 'value using the floor function : ' , value2 .

No comments:

Post a Comment