2007 Mar 22 4:02 PM
Dear all,
Is there any function module that will round off the decimal place /or round to the 6 significant digit after the decimal place
Please Help!!
Vj
2007 Mar 22 4:13 PM
Hi,
Please checkout following ABAP commands;
<b>CEIL</b> - Smallest integer value that is not less than x
<b>FLOOR</b> - Largest integer value that is not greater than x
See the code below
*&---------------------------------------------------------------------*
DATA: l_low TYPE bseg-dmbtr VALUE '2.2',
l_high TYPE bseg-dmbtr VALUE '2.2',
l_value_l TYPE bseg-dmbtr,
l_value_h TYPE bseg-dmbtr.
l_value_l = floor( l_low ). "result is 2.00
l_value_h = ceil( l_high ). "result is 3.00
*&---------------------------------------------------------------------*Let me know if you need any other information.
Regards,
RS
Dear all,
Is there any function module that will round off the decimal place /or round to the 6 significant digit after the decimal place
Please Help!!
Vj
2007 Mar 22 4:06 PM
2007 Mar 22 4:08 PM
use the fm 'ROUND'. you can pass the no. of decimals as a parameter.
~Suresh
2007 Mar 22 4:10 PM
Hi,
use FM <b>ROUND</b>
call function 'ROUND'
exporting
decimals = l_convert_digits
input = l_convert_number
sign = c_cross
importing
output = l_float.
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha
2007 Mar 22 4:13 PM
Hi,
Please checkout following ABAP commands;
<b>CEIL</b> - Smallest integer value that is not less than x
<b>FLOOR</b> - Largest integer value that is not greater than x
See the code below
*&---------------------------------------------------------------------*
DATA: l_low TYPE bseg-dmbtr VALUE '2.2',
l_high TYPE bseg-dmbtr VALUE '2.2',
l_value_l TYPE bseg-dmbtr,
l_value_h TYPE bseg-dmbtr.
l_value_l = floor( l_low ). "result is 2.00
l_value_h = ceil( l_high ). "result is 3.00
*&---------------------------------------------------------------------*Let me know if you need any other information.
Regards,
RS
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |