sybperl-l Archive
Up Prev Next
From: Adam Lenic <adam at sunlib dot p dot lodz dot pl>
Subject: ERROR???
Date: Nov 21 2001 12:30PM
Let's imagine the following code:
...
$query="select sum(amount) from po_line_item_budget_amount where po#=".$po." and
budget=".$budget."\n";
$dbh->dbcmd($query);
$dbh->dbsqlexec;
while($dbh->dbresults!=NO_MORE_RESULTS){
while(@data=$dbh->dbnextrow){
$suma=$data[0];
}
}
...
The answer is 0.072 but the correct answer would be 0.07 ... what is wrong???
The data in database are: 0.03,0.01,0.01,0.01.
Adam
PS. I have the sybperl-2.10
|