📅  最后修改于: 2022-03-11 14:54:06.305000             🧑  作者: Mango
$input = 17.99; // example input
$add = $input + 0.01;
$round = round($add);
$output = $round - 0.01;
simpler
return round($input + 0.01) - 0.01;