Searched refs:mant_dig (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Lib/test/ |
D | test_strtod.py | 27 def strtod(s, mant_dig=53, min_exp = -1021, max_exp = 1024): argument 52 e = max(d, min_exp) - mant_dig 59 if q.bit_length() == mant_dig+1: 64 assert q.bit_length() <= mant_dig and e >= min_exp - mant_dig 65 assert q.bit_length() == mant_dig or e == min_exp - mant_dig 74 hexdigs = 1 + (mant_dig-2)//4 75 shift = 3 - (mant_dig-2)%4
|
D | test_math.py | 608 mant_dig = float_info.mant_dig 609 etiny = float_info.min_exp - mant_dig 620 mant, exp = int(math.ldexp(mant, mant_dig)), exp - mant_dig 631 tail = max(len(bin(abs(tmant)))-2 - mant_dig, etiny - texp)
|
D | test_long.py | 34 DBL_MANT_DIG = sys.float_info.mant_dig 46 PRECISION = sys.float_info.mant_dig + 2 74 assert q % 4 == 0 and q // 4 <= 2**(sys.float_info.mant_dig)
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | cgcc | 197 my $mant_dig = int (($mant_bits - 1) * log (2) / log (10)); 204 $result .= " -D__${name}_DIG__=$mant_dig";
|
/third_party/python/Doc/whatsnew/ |
D | 2.6.rst | 2406 object include :attr:`mant_dig` (number of digits in the mantissa), 3037 ``"mant_dig"`` (number of digits in the mantissa), ``"epsilon"``
|
/third_party/python/Doc/library/ |
D | sys.rst | 529 | :const:`mant_dig` | DBL_MANT_DIG | float precision: the number of base-``radix`` |
|