Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 20, 2006, 7:30 pm
rate this thread
I am grabbing prices from a database. Sometimes the price is NULL and
sometimes there's a floating point value. Using PHP 4, when I print
the price to my CSV file, I want the price, rounded to the second
decimal place if the pirce is non-empty, but nothing if the price was
This doesn't work (it prints out 0.00 if the price is empty), but right
now I have
How do I adjust the above to get my desired result?