PHP_取整函数或保留小数位

来源:互联网 发布:sql isnull函数 编辑:程序博客网 时间:2024/05/02 18:50

$a=7.83121;

int($a); 

round($a,2);//7.83

round($a);//8

原创粉丝点击