This is my if/else loop:
y = digitalRead(5);
if (y ==0 && q ==5)
{ Temp + 1/10; }
else
{}
Temp is a float, and is initially set to 37 in setup.
I would like to add 0.1 to the value each time I press the button on pin 5, but I cant get it to work.
I can make the loop add hole numbers, but not fractions like 1/10.
Why is that?