php laravel rount price to 99 code example
Example: php laravel rount price to 99
$input = 17.99; // example input
$add = $input + 0.01;
$round = round($add);
$output = $round - 0.01;
simpler
return round($input + 0.01) - 0.01;
$input = 17.99; // example input
$add = $input + 0.01;
$round = round($add);
$output = $round - 0.01;
simpler
return round($input + 0.01) - 0.01;