Lines Matching refs:num
89 bc_out_num (bc_num num, int o_base, void (*out_char)(int), int leading_zero) in bc_out_num() argument
91 bc_out_num (bc_num num, int o_base, void (*out_char)(), int leading_zero) in bc_out_num()
100 if (num->n_sign == MINUS) (*out_char) ('-'); in bc_out_num()
103 if (bc_is_zero (num)) in bc_out_num()
109 nptr = num->n_value; in bc_out_num()
110 if (num->n_len > 1 || *nptr != 0) in bc_out_num()
111 for (index=num->n_len; index>0; index--) in bc_out_num()
116 if (leading_zero && bc_is_zero (num)) in bc_out_num()
120 if (num->n_scale > 0) in bc_out_num()
123 for (index=0; index<num->n_scale; index++) in bc_out_num()
130 if (leading_zero && bc_is_zero (num)) in bc_out_num()
136 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num()
140 bc_sub (num, int_part, &frac_part, 0); in bc_out_num()
178 if (num->n_scale > 0) in bc_out_num()
183 while (t_num->n_len <= num->n_scale) { in bc_out_num()
184 bc_multiply (frac_part, base, &frac_part, num->n_scale); in bc_out_num()