C# Math.Ceiling is not working like what I have read and researched. Windows Forms App : <p>So this should be a quick and easy fix someone could help me with. I have made it to were I need to round a number that is going to come out as a float possibly at points just simply round up to the nearest integer. This is the code I have so far.</p>

<pre><code>int result = ci * di;
                    double result1 = result * 0.10;
                    if (result1 == result1)
                        Math.Ceiling((double)result1);
                    if (result1 &gt;= 1000)
                        result1 = 1000;
</code></pre>

<p>When I run the program it goes through without errors but fails to do what I want. Also if there is any way to make that code look cleaner than what it is I'm all for it. But back to topic, if I type in lets say 56 in one box and 3 in the other, it should come out to saying that I have a value of 16.8 due to the percentage calculations I have done. When I try the math.ceiling there, it doesn't round anything. Also, the greater than or equal to 1000 thing is just because I don't want that number going over 1000. Thank you for any help that anyone may offer.</p>
