php bc高精度测试,php BC高精确度函数库
#兩個(gè)高精度數(shù)比較
#int?bccomp?(?string?$left_operand?,?string?$right_operand?[,?int?$scale?]?)
#$left=$right?返回?0
#$left
#$left>$right?返回?1
#$scale?小數(shù)點(diǎn)位數(shù)
#兩個(gè)高精度數(shù)相加
#string?bcadd?(?string?$left_operand?,?string?$right_operand?[,?int?$scale?]?)
#$scale?返回的小數(shù)點(diǎn)個(gè)數(shù)
#兩個(gè)高精度數(shù)相減
#sstring?bcsub?(?string?$left_operand?,?string?$right_operand?[,?int?$scale?]?)
#$scale?返回的小數(shù)點(diǎn)個(gè)數(shù)
#兩個(gè)高精度數(shù)求余/取模
#string?bcmod?(?string?$left_operand?,?string?$modulus?)
#兩個(gè)高精度數(shù)相除
#string?bcdiv?(?string?$left_operand?,?string?$right_operand?[,?int?$scale?]?)
#$scale小數(shù)點(diǎn)位數(shù)默認(rèn)為?0
#兩個(gè)高精度數(shù)相乘
#string?bcmul?(?string?$left_operand?,?string?$right_operand?[,?int?$scale?]?)
#$scale小數(shù)點(diǎn)位數(shù)默認(rèn)為?0
#兩個(gè)高精度數(shù)的次方值
#string?bcpow?(?string?$left_operand?,?string?$right_operand?[,?int?$scale?]?)
#$scale小數(shù)點(diǎn)位數(shù)默認(rèn)為?0
#求高精度數(shù)的平方根
#string?bcsqrt?(?string?$operand?[,?int?$scale?]?)
#$scale小數(shù)點(diǎn)位數(shù)默認(rèn)為?0
#設(shè)置bc函數(shù)的小數(shù)點(diǎn)位數(shù)
#bool?bcscale?(?int?$scale?)
#$scale小數(shù)點(diǎn)位數(shù)默認(rèn)為?0
原文:http://www.cnblogs.com/chunguang/p/4505603.html
總結(jié)
以上是生活随笔為你收集整理的php bc高精度测试,php BC高精确度函数库的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: java 数组练习题,Java练习题 -
- 下一篇: 职责链模式 php,php Chain