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

Round decimals

Former Member
0 Likes
551

Hi,

How can i round decimal places to nearest .005 ......?

for example : 0.162 => 0.165

1.038 => 1.04.

I sther any function module available in SAP...?

I tried Function 'ROUND ' but its not working.

Thanks,

Sara

3 REPLIES 3
Read only

StMou
Active Participant
0 Likes
500

Hi,

What is exacly the proplem.

you have FM ROUND

Rgds

Read only

Former Member
0 Likes
500

Hi,

You can define the variable type p decimals 3.

The value will be rounded upto 3 decimals.

The decimals can be changed upon your requirement.

Regards,

Sandeep

Read only

Former Member
0 Likes
500

Hi,

You want to round off till how many decimal places?

You can do it by defining the as 'v_count(or your field) type p decimals 2'