fix: rounding error for floats