Round a value in a function node

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)

2 Likes

okay now it works…
thank you!

or:
Math.round(value*100)/100;

1 Like

Shelly Plug Output rounded to 0 decimal digits.
{{msg.payload.power | number:0}}

1 Like