SQL Server and .NET Framerwork use a different default algorithm for rounding

Just as an additional warning, SQL Server and the .Net framework use a different default algorithm for rounding. Make sure you check out the MidPointRounding parameter in Math.Round(). .Net framework uses Bankers algorithm by default and SQL Server uses Symmetric Algorithmic Rounding.

Leave a Reply

You must be logged in to post a comment.