cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Math.round for rounding in rec experssion question

former_member269849
Participant
0 Likes
572

Hi Experts,

I want to round 19,578 to 19,58 , I 've added to my script in the rec expression Math.round but it rounded the value to 20 .

How can I fix the number of decimals to should be rounded ? where should I add the parameter of dicimals numbers?

regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

Please read my blog https://blogs.sap.com/2012/10/08/inline-rounding-in-rec-expression/

*REC(EXPRESSION=Math.round([ACCOUNT].[2020202020607]*100)/100)

former_member186338
Active Contributor

Just updated the blog for better formatting.

Answers (0)