April 20th, 2000, 10:58 AM
I've got a file that gets data from MySQL. When I print the field value, I get the full number, ex:
however, when I want to add two amounts that have empty decimal values
ex. ($balance=12.00; $add_fees=0.00)
$total = $balance + $add_fees;
then only "$12" is returned, missing the empty decimal value.
but I need to print the empty decimal as ".00"
this one has really stumped me. I appreciate any ideas.
April 20th, 2000, 12:52 PM