Question 5 Replies 4958 Views × Close popover Krzysztof Lenarcik (KrzysztofL2300) T-Mobile Main Specialist T-Mobile PL View Profile Send Message KrzysztofL2300 Member since 2017 4 posts T-Mobile Posted: May 21, 2018 Last activity: January 16, 2019 Posted: 21 May 2018 3:34 EDT Last activity: 16 Jan 2019 13:25 EST Closed Solved Round off number to two places Hi, I am facing a problem to round off a number to two places after comma. I can not find any good solution for this in Data Transform. Ex. Multiply two numbers and output is 334,535 Property should contain number with two decimal places only. I found some solutions for UI to round off but I need to have this property on pyWorkPage as well to make further calculations. I tried to use something OOTB but I couldn't find anything. Regards Krzysztof ***Updated by moderator: Lochan to add Categories*** Data Integration User Experience × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 2 years ago Posted: 21 May 2018 4:10 EDT × Close popover Chunzhi Hong (Chunzhi_Hong) PEGA Consulting Manager, Pega Consulting Pegasystems Inc. JP View Profile Send Message Chunzhi_Hong PEGA replied to KrzysztofL2300 try below. set .deciamlProp = @divide(.decimalProp,1,2,"half_up") Posted: 2 years ago Posted: 21 May 2018 5:14 EDT × Close popover Krzysztof Lenarcik (KrzysztofL2300) T-Mobile Main Specialist T-Mobile PL View Profile Send Message KrzysztofL2300 T-Mobile replied to Chunzhi_Hong Thanks, it's working now as expected Posted: 2 years ago Posted: 21 May 2018 6:02 EDT × Close popover Abhishek Kumar (kumaa33) PEGA Senior Systems Engineer - Cloud Pegasystems Inc. IN View Profile Send Message kumaa33 PEGA replied to KrzysztofL2300 Hello Krzysztof, I have tried something to achieve through writing a custom java step. You can call that activity from Data Transform. To call the activity in Data Transform , you can use pega_rules_utilities.callActivity(PrimaryPageName, ActivityName, tools.getParameterPage()); I have tried running the activity and its working properly, but have not tried calling the activity in DT. Thank you -Abhishek Posted: 2 years ago Posted: 21 May 2018 6:05 EDT × Close popover Abhishek Kumar (kumaa33) PEGA Senior Systems Engineer - Cloud Pegasystems Inc. IN View Profile Send Message kumaa33 PEGA replied to kumaa33 But i think the approach used by chunzi is more efficient. Thank you Posted: 2 years ago Posted: 16 Jan 2019 13:25 EST × Close popover Lyhov Anderson (LyhovA34) FDM Group Inc FDM Group Inc US View Profile Send Message LyhovA34 FDM Group Inc replied to KrzysztofL2300 You should use this function: BigDecimalRound(numberArg,RoundingType,scale) ie: Round your number evenly to two decimal places: .BigDecimalRound(.numberArg,HALF_EVEN,2) Search it in Expression Builder.