Home
last modified time | relevance | path

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

/third_party/python/Python/
Dformatter_unicode.c415 Py_ssize_t n_sign; /* number of digits needed for sign (0/1) */ member
487 spec->n_sign = 0; in calc_number_widths()
512 spec->n_sign = 1; in calc_number_widths()
516 spec->n_sign = 1; in calc_number_widths()
522 spec->n_sign = 1; in calc_number_widths()
528 n_non_digit_non_padding = spec->n_sign + spec->n_prefix + spec->n_decimal + in calc_number_widths()
590 return spec->n_lpadding + spec->n_sign + spec->n_prefix + in calc_number_widths()
616 if (spec->n_sign == 1) { in fill_number()
/third_party/python/Modules/_decimal/libmpdec/
Dio.c994 mpd_ssize_t n_sep, n_sign, consume; in _mpd_add_sep_dot() local
998 n_sign = sign ? 1 : 0; in _mpd_add_sep_dot()
1031 dest->nchars + n_sign < spec->min_width) { in _mpd_add_sep_dot()
1034 n_src = spec->min_width - (dest->nchars + n_sign); in _mpd_add_sep_dot()
Dmpdecimal.c3050 int x_sign, n_sign; in mpd_qscaleb() local
3084 n_sign = mpd_isnegative(b) ? 1 : 0; in mpd_qscaleb()
3086 if (x_sign == n_sign) { in mpd_qscaleb()
3091 x_sign = (x >= n) ? x_sign : n_sign; in mpd_qscaleb()