added a failing test for float rounding error
added helpers to avoid float rounding