Lines Matching refs:radix
1362 LispParseNumber(char *str, int radix, LispObj *read__stream, int read__line)
1372 if (radix < 2 || radix > 36)
1373 READ_ERROR1("radix %d is not in the range 2 to 36", radix);
1384 /* ratio must point to an integer in radix base */
1387 else if (radix == 10) {
1454 /* check if correctly specified in the given radix */
1456 if (!ratio && radix != 10 && str[len] == '.')
1459 if (ratio || radix != 10) {
1460 if (!StringInRadix(str, radix, 1)) {
1465 if (ratio && !StringInRadix(ratio, radix, 0)) {
1475 integer = strtol(str, NULL, radix);
1481 mpi_setstr(bignum, str, radix);
1489 denominator = strtol(ratio, NULL, radix);
1499 mpi_setstr(mpr_den(bigratio), ratio, radix);
1508 mpi_setstr(mpr_den(bigratio), ratio, radix);
1561 StringInRadix(char *str, int radix, int skip_sign)
1567 if (*str - '0' >= radix)
1571 if (radix <= 10 || *str - 'A' + 10 >= radix)
1637 LispReadRational(int radix, read_info *info)
1688 number = LispParseNumber(str, radix, read__stream, read__line);