Round the decimal values to next whole integer in pega infinity

I have a requirement to round decimals

Ex.

  • If decimal less than 50 (ex. 19.20) then round to 19
  • If decimal greater than 50 (ex. 19.60) then round to 20

Any ideas

We tried round function but that is deprecated in Pega infinity 24.1.3

@RashmithaM

I tested in Infinity 25 version with round function and it works as expected. Please find the screenshot for your reference.