Full threadnayuki·You don't need 100 iterations of binary search. Double-precision floating-point numbers only have 52 bits of precision.View on HN