View Single Post
Old 04-20-2005, 11:41 AM  
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
Quote:
Originally Posted by azguy
Try to add 1 to it
No luck...also tried * 1, using settype to make sure they are equivalent types and few other things.

The weird part is, if I only add a value once, its fine.

ie.
PHP Code:
$var 0;
$var += 0.00004;

echo 
$var
will give me 0.00004 as output.

Once I loop on it though and add more values, it changes format.

Weird, no one on IRC or google could solve it...my fix above though works for my purposes..
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote