标签:
round(x,prec)
<?php echo(round(0.60)); echo(round(0.50)); echo(round(0.49)); echo(round(-4.40)); echo(round(-4.60)); ?>
输出:
1 1 0 -4 -5
php float 转int
原文地址:http://www.cnblogs.com/tina-smile/p/4193832.html