正文开始
~~~
//科学计数法转浮点数
public static function strNumToFloat($num, $double = 10){
if(false !== stripos($num, "e")){
$a = explode("e",strtolower($num));
return bcmul($a[0], bcpow(10, $a[1], $double), $double);
} else {
return bcadd($num, 0, $double);
}
}
~~~
正文结束 |
PHP接口(interface)和抽象类(abstract) | composer 镜像设置/修改 |