Floating pointing incrementing, not working

Can you print both variables before and after the add please? (Serial.print).

Possibly one or the other is NaN (not a number).

Preferably post all your code inside code tags.