I\'m not a Math person so I\'m having a hard time to come up with a calculation to round the decimals to 25, 50, 75 and 100. And this will not be the typical round off because t
This is one way:
public decimal RoundNearestCents(decimal price) { decimal srp = price * 100; decimal m = srp % 25; srp = srp - m + (m > 0 ? 25 : 0); return srp / 100; }