Adding fraction to float

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?

1 is an integer, so is 10. 1 / 10 as integers is 0.

Why not just add 0.1?

Temp + 1/10;

Well, 1 divided by 10 is zero, but even when you make it 1.0 / 10.0, you don't assign the result of the addition to anything.

Temp = Temp + 0.1

thanks totally love you guys