I have a problem with the function Math.Round
, it does not rounding sometimes.
For example:
double a = 5 / 1.2; // = 4,1666666666666666666666666666667
Math.Round(a, 2);
// return 4,1666666666666666666666666666667 instead of 4.16.
has anyone encountered this problem before?
In a voice editor application, am trying to round the TTC and HT value, using Math.Round
did not always work.
8