企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
* [bcadd](https://www.php.net/manual/zh/function.bcadd.php "bcadd")(string`$num1`,string`$num2`,?int`$scale`\=**`null`**):两个任意精度数字的**加法**计算 * [bcsub](https://www.php.net/manual/zh/function.bcsub.php "bcsub")(string`$num1`,string`$num2`,?int`$scale`\=**`null`**):两个任意精度数字的**减法** * [bcmul](https://www.php.net/manual/zh/function.bcmul.php "bcmul")(string`$num1`,string`$num2`,?int`$scale`\=**`null`**):两个任意精度数字**乘法**计算 * [bcdiv](https://www.php.net/manual/zh/function.bcdiv.php "bcdiv")(string`$num1被除数`,string`$num2除数且不能为0否则返回null`,?int`$scale`\=**`null 保留的小数点`**):两个任意精度的数字**除法**计算 * [bccomp](https://www.php.net/manual/zh/function.bccomp.php "bccomp")(string`$num1`,string`$num2`,?int`$scale`\=**`null`**):比较两个任意精度的数字 。 两个数相等时返回 0;`num1`比`num2`大时返回 1; 其他则返回 -1 * [bcmod](https://www.php.net/manual/zh/function.bcmod.php "bcmod")(string`$num1`,string`$num2`,?int`$scale`\=**`null`**):任意精度数字取模 * [bcpow](https://www.php.net/manual/zh/function.bcpow.php "bcpow")(string`$num`,string`$exponent`,?int`$scale`\=**`null`**):任意精度数字的乘方 * [bcpowmod](https://www.php.net/manual/zh/function.bcpowmod.php "bcpowmod"):将一个任意精度数提高到另一个,并按指定的modu降低 * [bcscale](https://www.php.net/manual/zh/function.bcscale.php "bcscale")(int`$scale`):设置/获取所有 bc math 函数的默认小数点保留位数 * [bcsqrt](https://www.php.net/manual/zh/function.bcsqrt.php "bcsqrt")(string`$num`,?int`$scale`\=**`null`**):任意精度数字的二次方根