Hello,
we just figured out that there is some obscure rounding algorithm
implemented in .NET framework (e.g. 0.05 rounded to 1 decimal digit is 0.0
instead of 0.1). Although the behaviour is described in MSDN, it is so
unexpected that we didn't noticed it and we used it in an application. In
financial application. What a faux pass! When we wanted to fix this, we were
looking for some setting to switch to standard rounding but surprisingly we
found nothing. This is very strange - rounding is quite common operation. Is
there another library for standard rounding? What is the "rounding toward
even" algorithm good for? And why it is implemented in standard library
instead of normal rounding algorithm?
Thanks,
eXavier
Christopher Reed - 25 Jan 2006 20:33 GMT
In the .NET 2.0 Framework, it appears that these issues have been addressed.
You might look at the MSDN documentation for .NET 2.0 for more information.

Signature
Christopher A. Reed
"The oxen are slow, but the earth is patient."
> Hello,
> we just figured out that there is some obscure rounding algorithm
[quoted text clipped - 13 lines]
> Thanks,
> eXavier