Guest User

Untitled

a guest
Jun 13th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. int rounded = (int)Math.Round(precise, 0);
  2.  
  3. int rounded = Convert.ToInt32(precise);
  4.  
  5. int roundedUp = (int)Math.Ceiling(precise);
  6.  
  7. float fl = 0.678;
  8. int rounded_f = (int)(fl+0.5f);
Add Comment
Please, Sign In to add comment