Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Round off the decimal value

hi,

I need decimal value round off to upper limit

input is 15.67 the output should be 16.

Regards,

deepthi.

Tags:
Former Member
Former Member replied
DATA :
wa_test(10) TYPE p DECIMALS 2.
wa_test = '15.67'.
wa_test = CEIL( wa_test ).

DATA :
wa_test1(10) TYPE p DECIMALS 2.
wa_test1 = '15.67'.
wa_test1 = FLOOR( wa_test1 ).

WRITE: wa_test , wa_test1.
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question