Lines Matching refs:num
90 bc_out_num (bc_num num, int o_base, void (*out_char)(int), int leading_zero) in bc_out_num() argument
92 bc_out_num (bc_num num, int o_base, void (*out_char)(), int leading_zero) in bc_out_num()
101 if (num->n_sign == MINUS) (*out_char) ('-'); in bc_out_num()
104 if (bc_is_zero (num)) in bc_out_num()
110 nptr = num->n_value; in bc_out_num()
111 if (num->n_len > 1 || *nptr != 0) in bc_out_num()
112 for (index=num->n_len; index>0; index--) in bc_out_num()
117 if (leading_zero && bc_is_zero (num)) in bc_out_num()
121 if (num->n_scale > 0) in bc_out_num()
124 for (index=0; index<num->n_scale; index++) in bc_out_num()
131 if (leading_zero && bc_is_zero (num)) in bc_out_num()
137 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num()
141 bc_sub (num, int_part, &frac_part, 0); in bc_out_num()
180 if (num->n_scale > 0) in bc_out_num()
185 while (t_num->n_len <= num->n_scale) { in bc_out_num()
186 bc_multiply (frac_part, base, &frac_part, num->n_scale); in bc_out_num()