Greetings to the entire stack overflow community, could you help me with decimals rounding in PHP?
<?php
$bs = 10215251;
$formatbs = number_format($bs, 2, ',', '.');
$reconver = $bs / 1000;
$redondeo = round($reconver, 3, PHP_ROUND_HALF_UP);
$formatbss = number_format($redondeo, 3, ',', '.');
echo $formatbs." Bs<br>";
echo $formatbss." BsS<br>";
?>
When the third number (thousandth) is different from zero, the second number (hundredth) must be increased to the highest cent, but I can not do it: S ...