May 3, 2005 #1 captlid Technical User Oct 27, 2004 82 US $price = 150050; $viewprice = number_format($price, ', '); This outputs 150,050 How would I get it to output 1,500.50 regards,
$price = 150050; $viewprice = number_format($price, ', '); This outputs 150,050 How would I get it to output 1,500.50 regards,
May 4, 2005 1 #2 sleipnir214 Programmer May 6, 2002 15,350 US Divide the value in $price by 100 before you pass it to number_format(), maybe? Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
Divide the value in $price by 100 before you pass it to number_format(), maybe? Want the best answers? Ask the best questions! TANSTAAFL!!
May 4, 2005 Thread starter #3 captlid Technical User Oct 27, 2004 82 US thanks, I am laughing about it now. That I couldnt figure that out. Good idea, thanks Upvote 0 Downvote