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

Firefox and Chrome dark mode

Dealing with the morons who built Dell 7710 and RAID

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