Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 2 of 2) sorted by relevance

/unit/src/
H A Dnxt_parse.c270 nxt_uint_t integral, frac, power; in nxt_number_parse() local
320 frac = 0; in nxt_number_parse()
333 overflow = nxt_expect(0, (frac >= cutoff && (frac > cutoff in nxt_number_parse()
341 frac = frac * 10 + c; in nxt_number_parse()
347 return integral + (double) frac / power; in nxt_number_parse()
H A Dnxt_sprintf.c104 uint64_t ui64, frac; in nxt_vsprintf() local
396 frac = 0; in nxt_vsprintf()
405 frac = (uint64_t) ((f - i) * scale + 0.5); in nxt_vsprintf()
407 if (frac == scale) { in nxt_vsprintf()
409 frac = 0; in nxt_vsprintf()
423 buf = nxt_integer(&spf, buf, frac); in nxt_vsprintf()