Page 1 of 1

[Function in script] Round

Posted: 17 Dec 2013 20:45
by kyczan
Please add round function in action Script.
It should be working like standard round function with two parameters:
round(x,precision) - rounds a number with demand precision after coma.
For example:
round(2.234567, 2) = 2.23

Re: [Function in script] Round

Posted: 18 Dec 2013 17:22
by Martin
I add it to the todo-list.

You can also use the numberformat pattern if you want to use the rounding to format the number for displaying purposes:
-action Notification on Screen: {1.23456,numberformat,0.00}

Re: [Function in script] Round

Posted: 18 Dec 2013 19:24
by kyczan
ok, thanks.