Divide and Round to Next


public static int DivideAndRound(int x, int y)
        {
            return (int) (Math.Ceiling((double)((double)x / (double)y)));
        }

Comments

Popular posts from this blog

Enable Visual Studio to use more than 2GB of memory

Firefox and Chrome dark mode

Late 2008 Macbook only giving 1.5 gb/s speed with 6 gb/s Intel SSD?