任意数字 保留 两位 小数 PHP

sprintf("%.2f",substr(sprintf("%.3f", 50*0.93), 0, -2))
原文地址:https://www.cnblogs.com/shaoing/p/10488568.html