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

Tutorial: Using Google Cloud Storage from C# and .NET

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

The ridiculous interview experience