Hi, I want help for rounding the decimals with the nearest Integer. Consider the following code :
public test(int x, int y)
{
. . .
int scaled = x / y;
. . .
}
If the result of the operation x / y is a fraction, I want to round up to the nearest integer in C#. Suppose the result of x / y is 4.57 and want that convert to 5. Please help me solving my query..!!
Bookmarks