Re: [PHP] Formatting Percents

2001-08-16 Thread Evan Nemerson
When you print out the value just use printf("%.2f",$bprice); Like in C On Thursday 16 August 2001 21:31, you wrote: > Hello everyone, > > I am having a problem and can't seem to find an answer. Maybe someone here > can help. I have a gift store that has prices of items. Well each item has

Re: [PHP] Formatting Percents

2001-08-16 Thread David Robley
On Fri, 17 Aug 2001 14:19, David Smith wrote: > What I have in code. > > If the retail price is $139.95 and I use the following: > > $aprice = $hotbuys["price"] * .15; // Determine Discount > $bprice = $hotbuys["price"] - $aprice; // Subtract Discount > > $bprice = 118.9575 > > How can I format

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
riginal Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 11:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Formatting Percents Importance: High Hello everyone, I am having a problem and can't seem to find an answer. Maybe someone here can help

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
age- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 11:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Formatting Percents Importance: High Hello everyone, I am having a problem and can't seem to find an answer. Maybe someone here can help. I have a gift

[PHP] Formatting Percents

2001-08-16 Thread David Smith
Hello everyone, I am having a problem and can't seem to find an answer. Maybe someone here can help. I have a gift store that has prices of items. Well each item has a retail price that I have added to the DB. Let's say I want to sell the products at a discount of 15% but I don't want to