Fix bug to do with imprecise float representation.
Fix bug to do with imprecise float representation.

This bug is mainly affecting comparisons of two floating-point numbers,
yielding improper results, and ultimately, resulting in errors, such as
FloatDivisionByZero error.

kubkon/DM-Simulator