fixed decimals
Hi,
I have some properties connected with remote thing, so the values of the properties will be changing every 5 seconds. I need to round some of the property values to 2 digits after decimal point.
I tried writing a subscription with 'Any data change' event and used the code
me.prop1 = me.prop1.toFixed(2);
me.prop2 = me.prop2.toFixed(2);
me.prop3 = me.prop3.toFixed(2);
but getting errors.
Script log:
Error in: [Thing_name].[Subscription_name].javascript service

