Because railsim does a lot of floating point operations that aggregate total distance or current speed over time, it can happen that an accumulation of errors leads to inaccurate results. This PR ensures that distance and speed remains within feasible bounds.
Because railsim does a lot of floating point operations that aggregate total distance or current speed over time, it can happen that an accumulation of errors leads to inaccurate results. This PR ensures that distance and speed remains within feasible bounds.