RE: [PHP] Rounding to strange results

2001-03-06 Thread Rick St Jean
Message- >From: Martin E. Koss [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, March 06, 2001 7:45 AM >To: [EMAIL PROTECTED] >Subject: [PHP] Rounding to strange results > > >Hi, >I use a product database for 2 sites, one of which adds sales tax and rounds >to the nearest

RE: [PHP] Rounding to strange results

2001-03-06 Thread Johnson, Kirk
Is there a comma in one thousand, e.g., 1,000.00? round() will truncate everything to the right of a comma. Kirk -Original Message- From: Martin E. Koss [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 7:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Rounding to strange results Hi

[PHP] Rounding to strange results

2001-03-06 Thread Martin E. Koss
Hi, I use a product database for 2 sites, one of which adds sales tax and rounds to the nearest .10 and on the other site there is no tax and also no rounding. I am unable to figure out why a price of 1000.00 is being displayed as 1.00 and any price over 1000 does the same thing. 100.00 works fin