I'm not familiar with continued fractions (that is, I've forgotten everything I ever knew about them), however, are you guaranteed to have an exact solution for any given number of 'continuations'?
If you change sigdigits to 17, then you get an equality.