apologies to Delta_G, aradarbel10 and jremington
this done it as pointed out by Delta_G:
if (voltage<=11.5){
int volt = voltage*100;
int firstDigit = (volt/1000)%10;
...
........even third grade maths escapes me!
thank you for your advice.
apologies to Delta_G, aradarbel10 and jremington
this done it as pointed out by Delta_G:
if (voltage<=11.5){
int volt = voltage*100;
int firstDigit = (volt/1000)%10;
...
........even third grade maths escapes me!
thank you for your advice.