PHP显示两位小数完美方法

echo sprintf("%.2f", round($data,2));

  只用round,在实际显示中,会少一位0

posted on 2022-01-11 20:53  evil39c  阅读(116)  评论(0)    收藏  举报

导航