Application Development 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: 

Conversion of digits into numbers

Former Member
0 Kudos

Hi ,

Is there any procudure of FM to get decimal numbers into integers. For example 6.1 should be 7 .

Thanks

Satya

1 ACCEPTED SOLUTION

Former Member
0 Kudos
DATA: I TYPE I, 
P TYPE P DECIMALS 1 value '6.1'.
I = CEIL( P ). " 7 
write: I.

3 REPLIES 3

Former Member
0 Kudos
DATA: I TYPE I, 
P TYPE P DECIMALS 1 value '6.1'.
I = CEIL( P ). " 7 
write: I.

Simha_
Employee
Employee
0 Kudos

Hi,

Use <b>Ceil</b> function..

Cheers,

Simha.

Former Member
0 Kudos

Hello Naga,

FOr ur requireemnt u can make use of the CEIL Fuctions.

ie) Int = CEIL (P).

If useful reward.

Vasanth