Method Gmp.mpz()->invert() Method invert Gmp.mpz invert(int|float|Gmp.mpz x) Description Return the inverse of this mpz value modulo x. The returned value satisfies 0 <= result < x. Throws An error is thrown if no inverse exists.