Guest User

Untitled

a guest
Jul 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public static double RoundUp(double input, int places)
  2. {
  3. double multiplier = Math.Pow(10, Convert.ToDouble(places));
  4. return Math.Ceiling(input * multiplier) / multiplier;
  5. }
  6.  
  7. RoundUp(189.182, 2);
  8.  
  9. n = System.Math.Ceiling (n * 100) / 100;
  10.  
  11. 0.01 * ceil(100 * 189.182)
  12.  
  13. Math.Round(189.182, 2)
Add Comment
Please, Sign In to add comment