Method Gmp.mpz()->digits()


Method digits

string digits(void|int(2..62)|int(256)|int(-256) base)

Description

Convert this mpz object to a string. If a base is given the number will be represented in that base. Valid bases are 2-62 and 256 and -256. The default base is 10.

Note

The bases 37 to 62 are not available when compiled with GMP earlier than version 5.

See also

cast