Lines Matching refs:ratio
1367 char *ratio, *ptr;
1378 ratio = strchr(str, '/');
1379 if (ratio) {
1380 /* check if looks like a correctly specified ratio */
1381 if (ratio[1] == '\0' || strchr(ratio + 1, '/') != NULL)
1384 /* ratio must point to an integer in radix base */
1385 *ratio++ = '\0';
1456 if (!ratio && radix != 10 && str[len] == '.')
1459 if (ratio || radix != 10) {
1461 if (ratio)
1462 ratio[-1] = '/';
1465 if (ratio && !StringInRadix(ratio, radix, 0)) {
1466 ratio[-1] = '/';
1485 if (ratio && integer != 0) {
1489 denominator = strtol(ratio, NULL, radix);
1499 mpi_setstr(mpr_den(bigratio), ratio, radix);
1508 mpi_setstr(mpr_den(bigratio), ratio, radix);