Java to C# - intValue() equivalent in c#
<p>I am trying to re-write a piece of code which was in Java to C#, and I ran into a problem, basically I am creating a method which returns a string, but the string returned from c# and java is not the same, therefore the code is fauly. One problem is the following code, </p>

<p>I have this Java Code:</p>

<pre><code>Double localDouble1 = new Double(d1 / 100.0D);
int l = localDouble1.intValue();
</code></pre>

<p>And I want to re-write it in C#, I have tried </p>

<pre><code>Double localDouble1 = d1 / 100.0D;
int l = Convert.ToInt32(localDouble1);
</code></pre>

<p>It compiles and works, but the result is different, in my particular scenario, the Java int l variable contains 0, and the c# one returns 1.</p>

<p>Is there a better method to achieve what I need to do, the same as in Java.</p>
