Interestingly you will find that Microsoft SQL Server does not use Bankers
when rounding, which is why the .Net SqlDecimal.Round function also does not
use Bankers.

Darrel


On 4/20/06, Peter Ritchie <[EMAIL PROTECTED]> wrote:
>
> Yep, searching for the banker's algorithm--especially with respect to
> Math.Round--leads into many different discussions/rants and other
> algorithms.  Generally, I've found the discussions lead to "avoid
> Math.Round and implement your own".
>
> But, we don't have the ability of overriding how System.Drawing classes
> invoke Round, like Math.Round in .NET 2.0.
>
> Which is all well and good; if I have to roll-my-own Round (especially in
> general, if using .NET 1.x), then so be it.  But, I would at least expect
> System.Drawing.*.Round() to be useful to someone, like Math.Round() (if
> only to bankers).  I fail to see the usefulness of System.Drawing.*.Round
> ().
>
>
>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to