Searched refs:maxprec (Results 1 – 4 of 4) sorted by relevance
/third_party/python/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 | 1101 maxprec = 100 if c.Emax >= 100 else c.Emax 1102 c.prec = random.randrange(1, maxprec+1)
|
/third_party/curl/lib/ |
D | mprintf.c | 974 size_t maxprec = sizeof(work) - 2; in formatf() local 977 maxprec -= width; in formatf() 980 maxprec--; in formatf() 983 if(prec > (int)maxprec) in formatf() 984 prec = (int)maxprec-1; in formatf()
|
/third_party/python/Modules/_decimal/libmpdec/ |
D | mpdecimal.c | 4625 ln_schedule_prec(mpd_ssize_t klist[MPD_MAX_PREC_LOG2], mpd_ssize_t maxprec, in ln_schedule_prec() argument 4631 assert(maxprec >= 2 && initprec >= 2); in ln_schedule_prec() 4632 if (maxprec <= initprec) return -1; in ln_schedule_prec() 4634 i = 0; k = maxprec; in ln_schedule_prec() 4851 mpd_ssize_t maxprec, shift, t; in _mpd_qln() local 4904 maxprec = ctx->prec + 2; in _mpd_qln() 4944 maxprec = maxprec - mpd_adjexp(&tmp); in _mpd_qln() 4948 i = ln_schedule_prec(klist, maxprec, 2); in _mpd_qln() 4996 mpd_qln10(&v, maxprec+1, status); in _mpd_qln() 7404 mpd_ssize_t maxprec, mpd_ssize_t initprec) in recpr_schedule_prec() argument [all …]
|