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

regarding roundoff

Former Member
0 Likes
939

Hi every one,

Can i know how to roundoff the values like : -

789.67 to 790

678.45 to 678

Regards,

PHANINDER GOLLAPUDI.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
907

Hi,

SImple way to do this job is

delcare an other valriable of type i.

then copy data from this variable to that variable

Automatically SAP will do the job.

Thanks

Kiran.

8 REPLIES 8
Read only

Former Member
0 Likes
907

Hi

Use Ceil of floor or round

Regards

Shiva

Read only

Former Member
0 Likes
907

use FM ROUND

Read only

Former Member
0 Likes
908

Hi,

SImple way to do this job is

delcare an other valriable of type i.

then copy data from this variable to that variable

Automatically SAP will do the job.

Thanks

Kiran.

Read only

Former Member
0 Likes
907

Hi,

Use the function module ROUND

Regards

Sudheer

Read only

Former Member
0 Likes
907

hi

good

You can use the Function Module 'MURC_ROUND_FLOAT_TO_PACKED'.

Or you can also use the following code to round up:

DATA: num1 TYPE f, num2 TYPE p DECIMALS 3.

num1 = '1.666666'.

num2 = num1.

WRITE num2.

thanks

mrutyun^

Read only

Former Member
0 Likes
907

U can use builtin functions CEIL ot FLOar

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 20, 2008 9:48 AM

Read only

Former Member
0 Likes
907

Hi,

You can use Ceil or floor predefined methods or use can use FM ROUND.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
907

Thanks to All.