Re: [PHP] Problem with calculate

2004-07-16 Thread Rosen
Thanks ! abs() will not work for me, because I may have na negative numbers, but with round() it worked ! 10x "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rosen wrote: > > > I use some numbers from mysql table and other local vars to calculate one > > number. >

Re: [PHP] Problem with calculate

2004-07-16 Thread John W. Holmes
Rosen wrote: I use some numbers from mysql table and other local vars to calculate one number. But on one calc I receive thath $value=4.5474735088646E-013; This must be zero (0) - I see all vars and calc then with calculator. I use function number_format($value, 2, ".", "" ) and it return me -0.00

[PHP] Problem with calculate

2004-07-16 Thread Rosen
Hi, I have following problem: I use some numbers from mysql table and other local vars to calculate one number. But on one calc I receive thath $value=4.5474735088646E-013; This must be zero (0) - I see all vars and calc then with calculator. I use function number_format($value, 2, ".", "" ) and it