Example: distance in km with a minimum of 0.1, maximum of 1 and an interval of 0.1 produces the following:
0.1 km
0.2 km
0.30000000000000004 km
0.4 km
0.5 km
0.6 km
0.7 km
0.7999999999999999 km
0.8999999999999999 km
0.9999999999999999 km
The reason this happens is outlined on https://floating-point-gui.de/