Fixes unpredictable behavior with floats. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 57a29f2e7d)
57a29f2e7d