Another 4.10 BUG???
Posted in 1993
Another bug with 4.10?
It appears that Informix is not calculating the values correctly.
Below is the problem re-produced using the "stores" database.
Is this right/wrong Informix?
{**** test report using the orders table from the stores database ****}
database stores end
define
variable addon float
variable calc1 float
end
select customer_num from orders end
format
first page header
let addon = .07
on every row
let calc1=addon*customer_num
print "cusno=",customer_num using "<<<"," calc1=",calc1 using "$$&.&&"
end
{********* end of report *********}
{*********data from report *******}
cusno=104 calc1= $7.00 calc1 should be 7.28
cusno=101 calc1= $7.00 calc1 should be 7.07
cusno=104 calc1= $7.00
.
.
.
{********************************}
Bob Beaulieu
bobb@netcom.com
--
___________________________________________________________________________
|EZ TRAVEL (Bob Beaulieu) Internet : eztravel@netcom.com |
|4640-B Meridian San Jose, CA 95124 Telephone: (408) 978-0808 |
|---------------------------------------------------------------------------|
| $Best Fares$.........Great Service.......International/Domestic |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~