📜  php laravel rount 价格为 99 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:06.305000             🧑  作者: Mango

代码示例1
$input = 17.99; // example input
$add = $input + 0.01;
$round = round($add);
$output = $round - 0.01;

simpler
return round($input + 0.01) - 0.01;