Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static double RoundUp(double input, int places)
- {
- double multiplier = Math.Pow(10, Convert.ToDouble(places));
- return Math.Ceiling(input * multiplier) / multiplier;
- }
- RoundUp(189.182, 2);
- n = System.Math.Ceiling (n * 100) / 100;
- 0.01 * ceil(100 * 189.182)
- Math.Round(189.182, 2)
Add Comment
Please, Sign In to add comment