Round to 25, 50, 75, 100
问题 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 the decimals will not be decreased but only increased. Example: if 11.12, round to 11.25 if 11.34, round to 11.50 if 11.52, round to 11.75 if 11.76, round to 12.00 Here's my starting method: public float RoundNearestCents(String price) { float srp; return srp; } 回答1: public float RoundNearestCents(double d) { return