round()
Maybe I am missing something... and need your eyes!
$price = 35.25
$pandp = 1.35
$totalamount = $price + $pandp;
And I got 36.6 when using $totalamount. I want it to display as 36.60
I tried using round(), which is echo round($totalamount, 2) But that didn't work and I can't figure out what I'm missing.
How the heck do I get it to display the extra '0' to it? It must be somehting obvious!
$price = 35.25
$pandp = 1.35
$totalamount = $price + $pandp;
And I got 36.6 when using $totalamount. I want it to display as 36.60
I tried using round(), which is echo round($totalamount, 2) But that didn't work and I can't figure out what I'm missing.
How the heck do I get it to display the extra '0' to it? It must be somehting obvious!
