Skip to Content
avatar image
Former Member

Math.round for rounding in rec experssion question

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 02, 2016 at 10:43 AM

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

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

    Add comment
    10|10000 characters needed characters exceeded