Divide and Round to Next
public static int DivideAndRound(int x, int y) { return (int) (Math.Ceiling((double)((double)x / (double)y))); }
I have been working with Microsoft .NET since Beta 2. I first learnt it by myself in 2001 and was the first guy to install and use Visual Studio 2000 at that time. I installed Visual Studio for all my team members in the first .NET project we got. I have learnt a lot and have kept everything to myself so far.... Let me share what I have learnt and contribute to the community now...
Comments
Post a Comment