Roundup Expression with Script

Hello,

I am trying to know if there is a way to roundup a decimal number in a script.
Agents use a script to transfer interactions. In this script, we retrieve the estimated wait time which is in seconds.
We divide by 60 to convert to minute. However, it can result in decimal numbers.
Is there a way to roundup the number using a math expression in the script?

From here:

You can use these:
https://mathjs.org/docs/reference/functions.html

Which includes
[math.round(x [, n])] - Round a value towards the nearest integer.

Used like:
round(20.56,0) which would result in 21
or
ceil(20.26) which will also result in 21

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.