I have a payload number i need to convert form positive to negative or vice versa. tried to wrap my head around the math javascript but my coding skills are (non existing) are letting me down...
Any pointers will be appreciated.
Need the conversion to make my elec import/export numbers behave the right way!