depend on displaying only two digits after the decimal point
how to do it ?
Klaus' solution fixes your display issue, but be aware that the underlying variable might still be very (very very) slightly off.
Eg, if you increment it from 0 by 1, and then decrement it by 0.1 ten times, you might end up with a very small, or even negative, non-zero value. This can get super-exciting when you multiply it by eg 4095 to get a DAC output value.
Sometimes it is best to use scaled integers, eg if your number represented volts, then make your variable millivolts and thus step it by 100 millivolts (exactly) rather than 0.1 volts (approximately).