PHP
PHP 保留小数点后几位
1-保留小数点后几位,不四舍五入functionformatNumber($number,$point=2){if(false===($pointPlace=strpos($number,'.'))){returnnumber_format($number,2,'.','');}else{$tmpArr=explode('.',$number);return$tmpArr[0].'.'.subst

![[手游] 三网H5小游戏【少年仙路】WIN系服务端+Linux手工服务端+详细搭建教程](https://cdn.jxasp.com:9143/image/20260615/136BC33AA47EB0D84E878835A8B38FDB.png)









