Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a non-deterministic failing test in bigquery.
This has something to do with rounding of floats in Python 3. For example, .123 gets rounded down when converted to floating point: >>> (0.123).hex() '0x1.f7ced916872b0p-4' >>> # Add 4 for exponent and multiply .123 by 1000 >>> 2**(52 + 4) * 123 # Add 4 for exponent and multiply .123 by 1000 8863084066665136128 >>> # Account for the factor of 1000 we've multiplied .123 by >>> (0x1f7ced916872b0) * 1000 8863084066665136000
- Loading branch information