Skip to Content

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

Looking for Ceiling method

Hello Expert,

Is there a Ceiling method that I can get the smallest whole number greater than or equal to the specified number.

For Example,

I have number 1.2 and 1.9

I want to get the result of 2 for both.

Thanks,

Lena

Tags:
Former Member
Former Member replied

Hi,

You can use the CEIL function..

Ex..

DATA: V_INPUT TYPE NETPR VALUE '1.2'.

DATA: V_OUTPUT TYPE I.

v_ouput = CEIL( v_input ).

write: / v_output.

Thanks

Naren

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question