Lines Matching refs:result
231 bc_num first, second, result; in PHP_FUNCTION() local
245 bc_init_num(&result); in PHP_FUNCTION()
248 bc_add (first, second, &result, scale); in PHP_FUNCTION()
250 if (result->n_scale > scale) { in PHP_FUNCTION()
251 result = split_bc_num(result); in PHP_FUNCTION()
252 result->n_scale = scale; in PHP_FUNCTION()
255 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
258 bc_free_num(&result); in PHP_FUNCTION()
270 bc_num first, second, result; in PHP_FUNCTION() local
283 bc_init_num(&result); in PHP_FUNCTION()
286 bc_sub (first, second, &result, scale); in PHP_FUNCTION()
288 if (result->n_scale > scale) { in PHP_FUNCTION()
289 result = split_bc_num(result); in PHP_FUNCTION()
290 result->n_scale = scale; in PHP_FUNCTION()
293 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
296 bc_free_num(&result); in PHP_FUNCTION()
308 bc_num first, second, result; in PHP_FUNCTION() local
321 bc_init_num(&result); in PHP_FUNCTION()
324 bc_multiply (first, second, &result, scale); in PHP_FUNCTION()
326 if (result->n_scale > scale) { in PHP_FUNCTION()
327 result = split_bc_num(result); in PHP_FUNCTION()
328 result->n_scale = scale; in PHP_FUNCTION()
331 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
334 bc_free_num(&result); in PHP_FUNCTION()
346 bc_num first, second, result; in PHP_FUNCTION() local
359 bc_init_num(&result); in PHP_FUNCTION()
363 switch (bc_divide(first, second, &result, scale)) { in PHP_FUNCTION()
365 if (result->n_scale > scale) { in PHP_FUNCTION()
366 result = split_bc_num(result); in PHP_FUNCTION()
367 result->n_scale = scale; in PHP_FUNCTION()
369 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
378 bc_free_num(&result); in PHP_FUNCTION()
389 bc_num first, second, result; in PHP_FUNCTION() local
397 bc_init_num(&result); in PHP_FUNCTION()
401 switch (bc_modulo(first, second, &result, 0)) { in PHP_FUNCTION()
403 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
412 bc_free_num(&result); in PHP_FUNCTION()
423 bc_num first, second, mod, result; in PHP_FUNCTION() local
434 bc_init_num(&result); in PHP_FUNCTION()
441 if (bc_raisemod(first, second, mod, &result, scale_int) != -1) { in PHP_FUNCTION()
442 if (result->n_scale > scale_int) { in PHP_FUNCTION()
443 result = split_bc_num(result); in PHP_FUNCTION()
444 result->n_scale = scale_int; in PHP_FUNCTION()
446 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
454 bc_free_num(&result); in PHP_FUNCTION()
466 bc_num first, second, result; in PHP_FUNCTION() local
479 bc_init_num(&result); in PHP_FUNCTION()
482 bc_raise (first, second, &result, scale); in PHP_FUNCTION()
484 if (result->n_scale > scale) { in PHP_FUNCTION()
485 result = split_bc_num(result); in PHP_FUNCTION()
486 result->n_scale = scale; in PHP_FUNCTION()
489 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
492 bc_free_num(&result); in PHP_FUNCTION()
504 bc_num result; in PHP_FUNCTION() local
515 bc_init_num(&result); in PHP_FUNCTION()
516 php_str2num(&result, left); in PHP_FUNCTION()
518 if (bc_sqrt (&result, scale) != 0) { in PHP_FUNCTION()
519 if (result->n_scale > scale) { in PHP_FUNCTION()
520 result = split_bc_num(result); in PHP_FUNCTION()
521 result->n_scale = scale; in PHP_FUNCTION()
523 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
528 bc_free_num(&result); in PHP_FUNCTION()