RE: [PHP] Is php safe for e-commerce applications?

2001-12-05 Thread Jason Lotito
Reading the Bug report, it was mentioned if you want precision mathmatics, use BCMath http://www.php.net/manual/en/ref.bc.php That will give you the precision you are looking for. Jason Lotito [EMAIL PROTECTED] www.NewbieNetwork.net -Original Message- From: George Whiffen

Re: [PHP] Is php safe for e-commerce applications?

2001-12-05 Thread Jim
Would sprintf() handle your needs? This seems to work correctly... $val = sprintf(%.0f,(10*(8.20-0.20))); produces a string $val equal to 80. Is this too geeky? Jimtronic What a scary day, and it just gets worse 1. A user finds their account balance is displayed incorrectly on one