Hi All,
A very simple but confusing problem, I've now a lot of calculations in stored procedures that are all inaccurate!, e.g
1234567890 * (1.0 - 0.5/14.0)
the result is actually : 1,190,476,179.~
but SQL gives me: 1,190,476,532.3 7.~ [MSSQL 2005/SP2]
Is any way to force SQLServer to use maximum precision in constants and division results in a formula?
A very simple but confusing problem, I've now a lot of calculations in stored procedures that are all inaccurate!, e.g
1234567890 * (1.0 - 0.5/14.0)
the result is actually : 1,190,476,179.~
but SQL gives me: 1,190,476,532.3 7.~ [MSSQL 2005/SP2]
Is any way to force SQLServer to use maximum precision in constants and division results in a formula?
Comment