Hi,
I'm using PHP 4.4.4. I'm confused about the function "round". I have
<?= "prov tax: $provincial_tax " . round($provinci al_tax, 2) . "<BR>
\n" ?>
When $provincial_tax = 7.185, the output above is
prov tax: 7.185 7.18
Shouldn't the second number be 7.19 since 7.185 rounds to 7.19? I
appreciate any insights you may have, - Dave
I'm using PHP 4.4.4. I'm confused about the function "round". I have
<?= "prov tax: $provincial_tax " . round($provinci al_tax, 2) . "<BR>
\n" ?>
When $provincial_tax = 7.185, the output above is
prov tax: 7.185 7.18
Shouldn't the second number be 7.19 since 7.185 rounds to 7.19? I
appreciate any insights you may have, - Dave
Comment