Hello community,
could any one help me, Round a value in a function?
Math.round(value,2) doesn t work
Hello community,
could any one help me, Round a value in a function?
Math.round(value,2) doesn t work
I use: parseFloat(val).toFixed(1)
okay now it works…
thank you!
or:
Math.round(value*100)/100;
Shelly Plug Output rounded to 0 decimal digits.
{{msg.payload.power | number:0}}