delphIBase
Programmer
MY PROBLEM:
I made a stored procedure which extract the following values from a table
UNITPRICE ITEMQTY
====================== ===========
12.52 16
59.25 6
480.70 1
841.56 10
8786.63 2
and compute amount with the following formula
amount=(unitprice/1.1)* quantity
having defined amount a numeric(15,2) the stored procedure I created returned the following values
AMOUNT
======================
182.05
323.19
437.00
7650.56
15975.69
Using the statement "select sum(amount) from myproc" to get the sum I got
SUM
======================
24568.48
question:
Given the amount extracted why did I arrived with 24568.48 as sum instead of 24568.49 and how will i arrive with the accurate results?THANKS!:>
I made a stored procedure which extract the following values from a table
UNITPRICE ITEMQTY
====================== ===========
12.52 16
59.25 6
480.70 1
841.56 10
8786.63 2
and compute amount with the following formula
amount=(unitprice/1.1)* quantity
having defined amount a numeric(15,2) the stored procedure I created returned the following values
AMOUNT
======================
182.05
323.19
437.00
7650.56
15975.69
Using the statement "select sum(amount) from myproc" to get the sum I got
SUM
======================
24568.48
question:
Given the amount extracted why did I arrived with 24568.48 as sum instead of 24568.49 and how will i arrive with the accurate results?THANKS!:>