Comments and answers for "round off .01 diff"
https://ask.sqlservercentral.com/questions/101714/round-off-01-diff.html
The latest comments and answers for the question "round off .01 diff"Answer by Ian Roke
https://ask.sqlservercentral.com/answers/101733/view.html
Can you not just do `select round((1354.44*.528) / 0.528, 2)`?
Rounding only needs to be done on the answer. If you round values you do calculations on you loose accuracy.
This gives `1354.440000000` which I think is the answer you are looking for?Tue, 23 Apr 2013 14:07:56 GMTIan RokeComment by Kev Riley on Kev Riley's answer
https://ask.sqlservercentral.com/comments/101726/view.html
If rounding errors are an issue, then there are 2 approaches to use :
1. don't use SQL for presentation layer formatting, let the application do that, so that all values stay as accurate as they can.
2. Don't try and reverse calculations with rounded values, either use the original result (715.14432) or the original value ( 1354.44)
For example (and I have no idea what your data represents), but imagine 1354.44 is a cost of some product in it's source currency and 0.528 is the currency conversion rate, to get a local-currency value of 715.44. If you need to know the cost of the product in it's source currency, read it from the database (i.e. 1354.44)Tue, 23 Apr 2013 13:30:43 GMTKev RileyComment by cstephen on cstephen's answer
https://ask.sqlservercentral.com/comments/101725/view.html
We are using Two decimal Place, so we used round offTue, 23 Apr 2013 13:21:22 GMTcstephenAnswer by Kev Riley
https://ask.sqlservercentral.com/answers/101717/view.html
What result are you trying to achieve?
If you don't round, you'll get back to your original amount
select 1354.44 * .528 -- gives 715.14432
select 715.14432 / .528 -- gives 1354.440000000Tue, 23 Apr 2013 11:13:44 GMTKev Riley