If you simply map your requirements into base 2 digits (or base 2^32), then you can directly access any part of the number you like via the limb pointer. The internal format of both GMP and MPFR numbers is well documented, so you can easily "extract" any bit-substring you like. Jim White ANU, Canberra