Lines Matching refs:num
79 void bc_out_num (bc_num num, int o_base, void (*out_char)(char), int leading_zero) in bc_out_num() argument
88 if (num->n_sign == MINUS) (*out_char) ('-'); in bc_out_num()
91 if (bc_is_zero (num)) in bc_out_num()
97 nptr = num->n_value; in bc_out_num()
98 if (num->n_len > 1 || *nptr != 0) in bc_out_num()
99 for (index=num->n_len; index>0; index--) in bc_out_num()
104 if (leading_zero && bc_is_zero (num)) in bc_out_num()
108 if (num->n_scale > 0) in bc_out_num()
111 for (index=0; index<num->n_scale; index++) in bc_out_num()
118 if (leading_zero && bc_is_zero (num)) in bc_out_num()
124 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num()
128 bc_sub (num, int_part, &frac_part, 0); in bc_out_num()
166 if (num->n_scale > 0) in bc_out_num()
171 while (t_num->n_len <= num->n_scale) { in bc_out_num()
172 bc_multiply (frac_part, base, &frac_part, num->n_scale); in bc_out_num()