PHP显示两位小数完美方法

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

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

原文地址:https://www.cnblogs.com/evil39c/p/15790033.html