Searched refs:maxprec (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Modules/_decimal/tests/ |
D | randdec.py | 63 def digits(maxprec): argument 64 if maxprec == 0: return '' 65 return str(randrange(10**maxprec)) 71 def decimal_part(maxprec): argument 73 return digits(maxprec) 75 intlen = randrange(1, maxprec+1) 76 fraclen = maxprec-intlen 81 return ''.join((dot(), digits(maxprec))) 102 def numeric_value(maxprec, maxexp): argument 108 return ''.join((decimal_part(maxprec), exp_part)) [all …]
|
D | deccheck.py | 953 maxprec = 100 if c.Emax >= 100 else c.Emax 954 c.prec = random.randrange(1, maxprec+1)
|
/external/curl/lib/ |
D | mprintf.c | 922 size_t maxprec = sizeof(work) - 2; in dprintf_formatf() local 926 maxprec--; in dprintf_formatf() 929 if(prec > (long)maxprec) in dprintf_formatf() 930 prec = (long)maxprec-1; in dprintf_formatf()
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.c | 4463 ln_schedule_prec(mpd_ssize_t klist[MPD_MAX_PREC_LOG2], mpd_ssize_t maxprec, in ln_schedule_prec() argument 4469 assert(maxprec >= 2 && initprec >= 2); in ln_schedule_prec() 4470 if (maxprec <= initprec) return -1; in ln_schedule_prec() 4472 i = 0; k = maxprec; in ln_schedule_prec() 4689 mpd_ssize_t maxprec, shift, t; in _mpd_qln() local 4742 maxprec = ctx->prec + 2; in _mpd_qln() 4782 maxprec = maxprec - mpd_adjexp(&tmp); in _mpd_qln() 4786 i = ln_schedule_prec(klist, maxprec, 2); in _mpd_qln() 4834 mpd_qln10(&v, maxprec+1, status); in _mpd_qln() 7221 mpd_ssize_t maxprec, mpd_ssize_t initprec) in recpr_schedule_prec() argument [all …]
|