36int main(
int argc,
char *argv[]) {
43 fprintf(stderr,
"Usage: rounding <mode> <precision> <radix> <value>\n");
54 radix = atoi(argv[3]);
58 "Precision: %u digits\n"
60 "Input string: \"%s\"\n",
61 mode, prec, radix, argv[4]);
75 printf(
"Result string: \"%s\"\n", buf);
#define mp_rat_to_decimal
#define mp_rat_read_decimal
#define mp_rat_decimal_len