[Function in script] Round

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
kyczan
Posts: 2
Joined: 17 Dec 2013 20:38

[Function in script] Round

Post by kyczan » 17 Dec 2013 20:45

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: [Function in script] Round

Post by Martin » 18 Dec 2013 17:22

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}

kyczan
Posts: 2
Joined: 17 Dec 2013 20:38

Re: [Function in script] Round

Post by kyczan » 18 Dec 2013 19:24

ok, thanks.

Locked