Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Looking for Ceiling method

Former Member
0 Likes
1,591

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
670

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

4 REPLIES 4
Read only

Former Member
0 Likes
671

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

Read only

0 Likes
670

Thanks so much....

Read only

Former Member
0 Likes
670

check this

DATA: I TYPE I,

P TYPE P DECIMALS 2,

P = '3.4'.

I = CEIL( P ). " 4 - next largest whole number

regards

shiba dutta

Read only

Former Member
0 Likes
670

Hi,

Try to use the following command,

CEIL(a)