Pallove's blog

By Pallove, history, 2 years ago, In English

Tips and Tricks by Pallove

Floor :

int x,y;
    int ans = Floor(x/y) = x/y;

Ceiling :

int x,y;
     int ans = Ceiling(x/y) = (x + y - 1)/y;

Full text and comments »

 
 
 
 
  • Vote: I like it
  • -27
  • Vote: I do not like it

By Pallove, history, 3 years ago, In English
 
 
 
 
  • Vote: I like it
  • -20
  • Vote: I do not like it