Lines Matching refs:num
90 void _bc_free_num_ex(bc_num *num, bool persistent);
93 static inline bc_num bc_copy_num(bc_num num) in bc_copy_num() argument
95 num->n_refs++; in bc_copy_num()
96 return num; in bc_copy_num()
99 void bc_init_num(bc_num *num);
101 bool bc_str2num(bc_num *num, const char *str, const char *end, size_t scale, size_t *full_scale, bo…
105 zend_string *bc_num2str_ex(bc_num num, size_t scale);
107 void bc_int2num(bc_num *num, int val);
109 long bc_num2long(bc_num num);
119 bool bc_is_zero(bc_num num);
121 bool bc_is_zero_for_scale(bc_num num, size_t scale);
123 bool bc_is_near_zero(bc_num num, size_t scale);
125 bool bc_is_neg(bc_num num);
127 void bc_rm_trailing_zeros(bc_num num);
161 bc_num bc_floor_or_ceil(bc_num num, bool is_floor);
163 void bc_round(bc_num num, zend_long places, zend_long mode, bc_num *result);
180 bool bc_sqrt(bc_num *num, size_t scale);
185 #define bc_free_num(num) _bc_free_num_ex((num), 0) argument
186 #define bc_num2str(num) bc_num2str_ex((num), (num->n_scale)) argument