Home
last modified time | relevance | path

Searched refs:maxprec (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Modules/_decimal/tests/
Dranddec.py63 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 …]
Ddeccheck.py1101 maxprec = 100 if c.Emax >= 100 else c.Emax
1102 c.prec = random.randrange(1, maxprec+1)
/third_party/curl/lib/
Dmprintf.c929 size_t maxprec = sizeof(work) - 2; in dprintf_formatf() local
932 maxprec -= width; in dprintf_formatf()
935 maxprec--; in dprintf_formatf()
938 if(prec > (long)maxprec) in dprintf_formatf()
939 prec = (long)maxprec-1; in dprintf_formatf()
/third_party/python/Modules/_decimal/libmpdec/
Dmpdecimal.c4625 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 …]