文档归类:编程开发
php 科学计数法转换具体看下面代码:
<?php
$num = number_format(1.2313223123423E+017,'','','');//后面三个参数为空
echo $num; //输出“123132231234230000”
$num = number_format(1.2313223123423E+017); //后面三个参数为默认值
echo $num; //输出“123,132,231,234,230,000”
$num = number_format(1.2313223123423E+017,'@','#','$');//后面三个参数为分别为'@','#','$'
echo $num; //输出“123$132$231$234$230$000”
?>php,科学计数法,php学习,php技术,php编程开发...
博主太强大了,膜拜去»