Good Morning. I am trying to round the decimals of this number 139.73491 to 139.74. I already tried several things but it doesn't work for me. I share with you what I've done and I haven't been left waiting for you to support me.
failed 1
$numero = 139.73491;
echo round($numero, 2);
result 139.73
Failed 2
$numero = 139.73491;
echo round($numero * 100) / 100;
Result 139.73
failed 3
$numero = 139.73491;
echo round($numero, 2, PHP_ROUND_HALF_UP);
Result 139.73
I hope you can support me.
Cheers!