I need to round up value like 0.15, 0.20, 0.25 to nearest whole number 1. I'm trying like below but it is returning 0.
decimal fees = Math.Round(30 * 0.005M);
I would appreciate any help or suggestion on the above.
I need to round up value like 0.15, 0.20, 0.25 to nearest whole number 1. I'm trying like below but it is returning 0.
decimal fees = Math.Round(30 * 0.005M);
I would appreciate any help or suggestion on the above.
You should have a look at Math.Ceiling. Also you should search your query before asking a question and you would have found: