how to truncate an double datatype value variable
<pre><code>public class Score
{
    public double  marks { get; set; }
}
</code></pre>

<p>now in my code  </p>

<pre><code>List&lt;Level1&gt; Obj= new List&lt;Level1&gt;();
 Score Object= new Score();
 l1.marks=94.345454;
Obj.Add(Object)
</code></pre>

<p><strong>// now  whiling  adding  the object to list  i need  to  trunacte the value to
94.34 and store in the list obj.</strong>
 so that i need  to get  output has 94.34
  how  can i  do it.
 thanks in advance<br>
 prince</p>
