D
Daniel Berger
Hi all,
For comparing floats I normally do something like this:
assert_in_delta('100.324', '100.32', 0.01)
However, for extended notation it breaks down:
assert_in_delta(1.34341429278853e+15,
18446744073709551616.quo(13731.24), 1.0)
That gives me a failure. What's the proper way to test this?
Thanks,
Dan
For comparing floats I normally do something like this:
assert_in_delta('100.324', '100.32', 0.01)
However, for extended notation it breaks down:
assert_in_delta(1.34341429278853e+15,
18446744073709551616.quo(13731.24), 1.0)
That gives me a failure. What's the proper way to test this?
Thanks,
Dan