php 函数

1.结果保留小数点后一位,并且四舍五入

  sprintf('%.1f',$weight)  

posted @ 2019-03-23 15:06  凯宾斯基  阅读(127)  评论(0编辑  收藏  举报