Advertisement
Guest User

Round

a guest
Nov 22nd, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. public int round(int from, int round) {
  2. if(from % round == 0) {
  3. return from;
  4. }
  5. return round * (round % from);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement