Framework 1.0 Rounding Probelm

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
 
T

Tom Shelton

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.
 
M

Michel Posseth [MCP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top