Home
last modified time | relevance | path

Searched refs:_dec_from_triple (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/
D_pydecimal.py252 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
382 return _dec_from_triple(sign, '9'*context.prec,
387 return _dec_from_triple(sign, '9'*context.prec,
711 result = _dec_from_triple(sign, coeff, -k)
1192 ans = _dec_from_triple(sign, '0', exp)
1214 ans = _dec_from_triple(negativezero, '0', exp)
1300 ans = _dec_from_triple(resultsign, '0', resultexp)
1307 ans = _dec_from_triple(resultsign, other._int, resultexp)
1311 ans = _dec_from_triple(resultsign, self._int, resultexp)
1318 ans = _dec_from_triple(resultsign, str(op1.int * op2.int), resultexp)
[all …]
/external/python/cpython2/Lib/
Ddecimal.py220 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
350 return _dec_from_triple(sign, '9'*context.prec,
355 return _dec_from_triple(sign, '9'*context.prec,
692 result = _dec_from_triple(sign, str(n*5**k), -k)
1159 ans = _dec_from_triple(sign, '0', exp)
1181 ans = _dec_from_triple(negativezero, '0', exp)
1267 ans = _dec_from_triple(resultsign, '0', resultexp)
1274 ans = _dec_from_triple(resultsign, other._int, resultexp)
1278 ans = _dec_from_triple(resultsign, self._int, resultexp)
1285 ans = _dec_from_triple(resultsign, str(op1.int * op2.int), resultexp)
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py50 from _pydecimal import _dec_from_triple
405 return _dec_from_triple(0, '1', dec._exp+len(dec._int)-prec)
436 x = _dec_from_triple(exact._sign, '10', context.p.Emax)
439 y = _dec_from_triple(rounded._sign, '10', context.p.Emax)