I need to get the following result:
4,2 = 5
85,02 = 9
256,9 = 3...
For the time being, I used the code:
$novoservico = '402,02';
$novoservico = str_replace(",",".",$novoservico);
$valor_redondo = ceil($novoservico);
echo $valor_redondo; ?>
With this code, I can always round up the numbers:
4,2 = 5
85,02 = 86
256,9 = 257...
In this case, I need to make these numbers "truncated up". I do not know if I was very clear using that expression. But it was the best way to explain what I need to do. Thanks in advance. about any remark or doubt about the question, I am at your disposal.