Framework 1.0 Rounding Probelm

  • Thread starter Thread starter BB206
  • Start date Start date
B

BB206

How to do if I want to rounding like this :

2 decimal point :

12.445 = 12.45
12.4449 = 12.44

Just like the rounding result in SQL Server
 
How to do if I want to rounding like this :

2 decimal point :

12.445 = 12.45
12.4449 = 12.44

Just like the rounding result in SQL Server

Math.Round... Though you depending on how you want to handle midpoints,
you might or might not need to use one of the overloads that allows you
to specify midpoint behavior.
 
All IDE`s C# , VB , DELPHI etc etc etc and even COBOL use Bankers
rounding as there standard
in your situation you must use mathematical rounding midpoint rounding away
from zero to be precise


HTH

Michel
 
Back
Top