I need to get two thirds and round to whole number.
Standard rounding:
- .6 rounds to 1
- .5 rounds to 1
- .4 rounds to 0
AwayFromZero I believe is the right option to use here. But I think my multiplication is not right because I'm getting 0 for my result.
int totalPoints= 71625;
int twoThirds = (int)Math.Round((double)totalPoints * (2 / 3), 0, MidpointRounding.AwayFromZero);
Answer should be 47750.