关于数字的问题? 用printf()函数,可以查一下手册里面很详细的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 也可以用的sprintf()round()与numer_format()等详细情况看手册 re<?php$num="2.148532723";echo sprintf("%.2f",$num)."\n"; //printf("%.2f",$num);echo round($num,2)."\n";echo number_format($num,2)."\n";?> 分层做雇员管理系统,check the manual that corresponds to your MySQL server version 这是什么错误? AJAX 更新日期刷新页面问题 sock5代理问题 如何判断是刷新还是提交? 关于mysql_fetch_row的问题 关于$sql的插入语句 不会处理这个传递过来的url了,请求帮助,谢谢~~ 为什么PHP不能接收。。 高分求一个分页函数或类,象google上的那种 对于通用的功能,是编成通用的函数还是编成类执行速度快? img可不可以加上背景的? php输出中文的问题!急!
<?php
$num="2.148532723";echo sprintf("%.2f",$num)."\n"; //printf("%.2f",$num);echo round($num,2)."\n";echo number_format($num,2)."\n";
?>