daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top