Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. decimal price = 13224.60m;
  2. int aux = (int) Math.Round(Convert.ToDouble(price), 0, MidpointRounding.ToEven);
  3.  
  4. decimal price = 13224.40m;
  5. int aux = (int) Math.Round(Convert.ToDouble(price), 0, MidpointRounding.ToEven);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement