📅  最后修改于: 2022-03-11 14:54:35.788000             🧑  作者: Mango
代码示例1
function cutNum($num, $precision = 2) {
return floor($num) . substr(str_replace(floor($num), '', $num), 0, $precision + 1);
}