Forum Moderators: coopster
What I want to do is have my end results show the full cost, right now I'm losing and 0's that would appear after the decimal such as $55.00 shows as $55 and $42.20 would come out as $42.2
Is there a way to force the 2 decimals places?
try this for display
money_format [php.net]
or even
number_format [php.net]
I usually use number_format and just put a $ in front
<?php
$number = 200;
$english_format_number = number_format($number, 2, '.', '');//answer is 200.00
?>
More at [pl.php.net...]
Best regards
Michal Cibor