2
I have the following code:
$subjects[$i]['mark_final'] = number_format($final,1);
That returns example: 8.0 (so far everything ok).
The problem is when I divide by 4.
$subjects[$i]['mark_final'] = number_format($final, 1) / 4;
He returns me 2, I would like you to return 2.0
It worked perfectly. Thank you very much. Jrd.
– user144209