how would i stop the below returning a value less than 0. I want anything less than 0 to show as 0. Any help appreciated.
$("#spanrPower_CO2").text (Math.round(-data[0] * 16.8) * 100 / 100);
how would i stop the below returning a value less than 0. I want anything less than 0 to show as 0. Any help appreciated.
$("#spanrPower_CO2").text (Math.round(-data[0] * 16.8) * 100 / 100);