I have a function with the following..
msg.payload = msg.payload.Paywave_$;
Paywave_$ appears with a lot of decimal places that I need to reduce to one. However as this value is being sent to a csv file and not to a dashboard display I cannot use the Value format.
How can I change this in the function. I have tried .tofixed(1) but this creates problems and |number:1 does not seem to work.
Thanks in advance