J
julien
Hi, I am using Sybase 12.5 dataserver and ASP.NET
I am calling a stored procedure from my asp.net page, in this stored
procedure, I have 2 float fields that are returned. One is directly
taken from one float column of a table, and the other one is a
substraction of 2 float columns of a table. The first field is all the
time ok, whereas the calculated field is almost all the time wrong,
that is it returns things like :
1,332294 - 1,334709 = -0,00241499999999983 or
1,334 - 1,334093 = -9,29999999998987E-5 or
1,3281 - 1,328256 = -0,000156000000000045
Sometimes it's ok like :
1,8774 - 1,864693 = 0,012707 or
103,96 - 103,8564 = 0,1036
When I launch this stored procedure with isql, which is the basic
inline tool of Sybase, I get all the time the right calculations. How
is that? What can I set in my .Net environment to do the right
calculation all the time?
Thank you for your help,
JULIEN
I am calling a stored procedure from my asp.net page, in this stored
procedure, I have 2 float fields that are returned. One is directly
taken from one float column of a table, and the other one is a
substraction of 2 float columns of a table. The first field is all the
time ok, whereas the calculated field is almost all the time wrong,
that is it returns things like :
1,332294 - 1,334709 = -0,00241499999999983 or
1,334 - 1,334093 = -9,29999999998987E-5 or
1,3281 - 1,328256 = -0,000156000000000045
Sometimes it's ok like :
1,8774 - 1,864693 = 0,012707 or
103,96 - 103,8564 = 0,1036
When I launch this stored procedure with isql, which is the basic
inline tool of Sybase, I get all the time the right calculations. How
is that? What can I set in my .Net environment to do the right
calculation all the time?
Thank you for your help,
JULIEN