‎2008 Feb 20 1:28 PM
Hi every one,
Can i know how to roundoff the values like : -
789.67 to 790
678.45 to 678
Regards,
PHANINDER GOLLAPUDI.
‎2008 Feb 20 1:32 PM
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.
‎2008 Feb 20 1:29 PM
‎2008 Feb 20 1:30 PM
‎2008 Feb 20 1:32 PM
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.
‎2008 Feb 20 1:35 PM
‎2008 Feb 20 1:47 PM
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^
‎2008 Feb 20 1:54 PM
U can use builtin functions CEIL ot FLOar
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 20, 2008 9:48 AM
‎2008 Feb 20 1:57 PM
Hi,
You can use Ceil or floor predefined methods or use can use FM ROUND.
Thanks,
Sriram Ponna.
‎2008 Feb 20 2:47 PM