Hi,
I'm struggling with a simple math function in my Node Red flow.
This doesn't work:
maxBattery = ((80-(100*(sum/1000)/15.4)).toFixed(2))+20; msg.payload = maxBattery; return msg;
This does:
maxBattery = 80-(100*(sum/1000)/15.4)).toFixed(2); msg.payload = Number(maxBattery)+20; return msg;
Why?