Solved with unexpected arbitrary-precision arithemetic happening behind
my back.  Obviously not in the spirit of the problem.