Lines Matching refs:scale
159 int scale; in PHP_FUNCTION() local
169 scale = BCG(bc_precision); in PHP_FUNCTION()
174 scale = (int) scale_param; in PHP_FUNCTION()
191 bc_add (first, second, &result, scale); in PHP_FUNCTION()
193 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
210 int scale; in PHP_FUNCTION() local
220 scale = BCG(bc_precision); in PHP_FUNCTION()
225 scale = (int) scale_param; in PHP_FUNCTION()
242 bc_sub (first, second, &result, scale); in PHP_FUNCTION()
244 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
261 int scale; in PHP_FUNCTION() local
271 scale = BCG(bc_precision); in PHP_FUNCTION()
276 scale = (int) scale_param; in PHP_FUNCTION()
293 bc_multiply (first, second, &result, scale); in PHP_FUNCTION()
295 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
312 int scale = BCG(bc_precision); in PHP_FUNCTION() local
322 scale = BCG(bc_precision); in PHP_FUNCTION()
327 scale = (int) scale_param; in PHP_FUNCTION()
344 switch (bc_divide(first, second, &result, scale)) { in PHP_FUNCTION()
346 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
368 int scale = BCG(bc_precision); in PHP_FUNCTION() local
378 scale = BCG(bc_precision); in PHP_FUNCTION()
383 scale = (int) scale_param; in PHP_FUNCTION()
400 switch (bc_modulo(first, second, &result, scale)) { in PHP_FUNCTION()
402 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
424 int scale = BCG(bc_precision); in PHP_FUNCTION() local
435 scale = BCG(bc_precision); in PHP_FUNCTION()
440 scale = (int) scale_param; in PHP_FUNCTION()
463 if (bc_raisemod(first, second, mod, &result, scale) == SUCCESS) { in PHP_FUNCTION()
464 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
483 int scale = BCG(bc_precision); in PHP_FUNCTION() local
493 scale = BCG(bc_precision); in PHP_FUNCTION()
498 scale = (int) scale_param; in PHP_FUNCTION()
515 bc_raise (first, second, &result, scale); in PHP_FUNCTION()
517 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
534 int scale = BCG(bc_precision); in PHP_FUNCTION() local
543 scale = BCG(bc_precision); in PHP_FUNCTION()
548 scale = (int) scale_param; in PHP_FUNCTION()
558 if (bc_sqrt (&result, scale) != 0) { in PHP_FUNCTION()
559 RETVAL_STR(bc_num2str_ex(result, scale)); in PHP_FUNCTION()
577 int scale = BCG(bc_precision); in PHP_FUNCTION() local
587 scale = BCG(bc_precision); in PHP_FUNCTION()
592 scale = (int) scale_param; in PHP_FUNCTION()
598 if (!bc_str2num(&first, ZSTR_VAL(left), scale)) { in PHP_FUNCTION()
603 if (!bc_str2num(&second, ZSTR_VAL(right), scale)) { in PHP_FUNCTION()