ZZ
, alias of the mpz_class
corresponds to big integers.QQ
, alias of mpq_class
corresponds to big rational numbers.RR
, alias of mpf_class
corresponds to big floating point numbers.The function Precision
allow the user to change the global precision or the precision of a floating point number.
#include <synaps/arithm/gmp.h>
ZZ a("342453413214531234"), i(1); QQ b("334/5"); RR c("323232442.345345");Precision(34);
synaps/arithm/gmp.h