Home
last modified time | relevance | path

Searched refs:maxdigits (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/test/
Dtest_int.py596 maxdigits = sys.get_int_max_str_digits()
598 int_class('1' * maxdigits)
599 int_class(' ' + '1' * maxdigits)
600 int_class('1' * maxdigits + ' ')
601 int_class('+' + '1' * maxdigits)
602 int_class('-' + '1' * maxdigits)
603 self.assertEqual(len(str(10 ** (maxdigits - 1))), maxdigits)
613 maxdigits = sys.get_int_max_str_digits()
615 self.check('1' * (maxdigits + 1))
616 self.check(' ' + '1' * (maxdigits + 1))
[all …]
Dtest_xmlrpc.py292 maxdigits = 5000
293 with support.adjust_int_max_str_digits(maxdigits):
294 s = '1' * (maxdigits + 1)
/third_party/python/Lib/test/test_json/
Dtest_decode.py100 maxdigits = 5000
101 with support.adjust_int_max_str_digits(maxdigits):
102 self.loads('1' * maxdigits)
104 self.loads('1' * (maxdigits + 1))
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
DPeriodFormatterData.java415 public void appendInteger(int num, int mindigits, int maxdigits, in appendInteger() argument
429 case ENumberSystem.DEFAULT: appendDigits(num, mindigits, maxdigits, sb); break; in appendInteger()
450 public void appendDigits(long num, int mindigits, int maxdigits, in appendDigits() argument
452 char[] buf = new char[maxdigits]; in appendDigits()
453 int ix = maxdigits; in appendDigits()
458 for (int e = maxdigits - mindigits; ix > e;) { in appendDigits()
461 sb.append(buf, ix, maxdigits - ix); in appendDigits()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
DPeriodFormatterData.java413 public void appendInteger(int num, int mindigits, int maxdigits, in appendInteger() argument
427 case ENumberSystem.DEFAULT: appendDigits(num, mindigits, maxdigits, sb); break; in appendInteger()
448 public void appendDigits(long num, int mindigits, int maxdigits, in appendDigits() argument
450 char[] buf = new char[maxdigits]; in appendDigits()
451 int ix = maxdigits; in appendDigits()
456 for (int e = maxdigits - mindigits; ix > e;) { in appendDigits()
459 sb.append(buf, ix, maxdigits - ix); in appendDigits()
/third_party/python/Python/clinic/
Dsysmodule.c.h678 sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits);
687 int maxdigits; in sys_set_int_max_str_digits() local
693 maxdigits = _PyLong_AsInt(args[0]); in sys_set_int_max_str_digits()
694 if (maxdigits == -1 && PyErr_Occurred()) { in sys_set_int_max_str_digits()
697 return_value = sys_set_int_max_str_digits_impl(module, maxdigits); in sys_set_int_max_str_digits()
/third_party/python/Python/
Dinitconfig.c1776 int maxdigits; in config_init_int_max_str_digits() local
1781 if (!_Py_str_to_int(env, &maxdigits)) { in config_init_int_max_str_digits()
1782 valid = ((maxdigits == 0) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)); in config_init_int_max_str_digits()
1792 _Py_global_config_int_max_str_digits = maxdigits; in config_init_int_max_str_digits()
1799 if (!config_wstr_to_int(sep + 1, &maxdigits)) { in config_init_int_max_str_digits()
1800 valid = ((maxdigits == 0) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)); in config_init_int_max_str_digits()
1811 _Py_global_config_int_max_str_digits = maxdigits; in config_init_int_max_str_digits()
Dsysmodule.c1680 sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits) in sys_set_int_max_str_digits_impl() argument
1684 if ((!maxdigits) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)) { in sys_set_int_max_str_digits_impl()
1685 tstate->interp->int_max_str_digits = maxdigits; in sys_set_int_max_str_digits_impl()
/third_party/skia/third_party/externals/icu/source/i18n/
DdecNumber.cpp3844 Int maxdigits; /* longest logical length */ in decAddOp() local
4060 maxdigits=rhs->digits+padding; /* virtual length of RHS */ in decAddOp()
4061 if (lhs->digits>maxdigits) maxdigits=lhs->digits; in decAddOp()
4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4130 if (res->digits<maxdigits) { in decAddOp()
4132 res->digits=maxdigits; in decAddOp()
4140 if (res->digits<maxdigits) res->digits=maxdigits; in decAddOp()
4280 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp() local
4460 maxdigits=rhs->digits+reqdigits-1; in decDivideOp()
[all …]
/third_party/icu/icu4c/source/i18n/
DdecNumber.cpp3844 Int maxdigits; /* longest logical length */ in decAddOp() local
4060 maxdigits=rhs->digits+padding; /* virtual length of RHS */ in decAddOp()
4061 if (lhs->digits>maxdigits) maxdigits=lhs->digits; in decAddOp()
4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4130 if (res->digits<maxdigits) { in decAddOp()
4132 res->digits=maxdigits; in decAddOp()
4140 if (res->digits<maxdigits) res->digits=maxdigits; in decAddOp()
4280 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp() local
4460 maxdigits=rhs->digits+reqdigits-1; in decDivideOp()
[all …]
/third_party/node/deps/icu-small/source/i18n/
DdecNumber.cpp3844 Int maxdigits; /* longest logical length */ in decAddOp() local
4060 maxdigits=rhs->digits+padding; /* virtual length of RHS */ in decAddOp()
4061 if (lhs->digits>maxdigits) maxdigits=lhs->digits; in decAddOp()
4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4130 if (res->digits<maxdigits) { in decAddOp()
4132 res->digits=maxdigits; in decAddOp()
4140 if (res->digits<maxdigits) res->digits=maxdigits; in decAddOp()
4280 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp() local
4460 maxdigits=rhs->digits+reqdigits-1; in decDivideOp()
[all …]
/third_party/python/Doc/library/
Ddecimal.rst2173 >>> maxdigits = 19 * ((500 * 1024**2) // 8)
2176 >>> c = Context(prec=maxdigits, Emax=MAX_EMAX, Emin=MIN_EMIN)