here's my query.
$result = mysql_query("SELECT SUM(DAY+NIGHT) AS TOTALTIME FROM MAIN", $db);
$myrow = mysql_fetch_array($result);
extract ($myrow);
echo ("<br>$TOTALTIME<br>");
In my database, Night = 1.2 and Day = 0.7
The answer should come up as 1.9 right?
Well,
I'm getting:
1.9000000357628
The first couple of decimal points are always correct, but then i get a bunch of numbers in the back
any clude why?
thanks
Noam