title: Doing Math Operation using MVC Razor
body: <p>what i try to do is a simple math operation in my project but something works wrong because i get always 0. So my question is:</p>
  
  <p>how can i do this math operations using mvc razor?</p>
  
  <p>what i try is this:</p>
  
  <pre><code>@{
    decimal a = 2 / 4;  //--&gt; result 0,5
    int b = a * 100   //--&gt; 50
  }
  </code></pre>
  
  <p>the problem is that the first result of the variable a give me 0,5 and i need this value in decimal,
  but then i wanted to multiplicate it with 100 that gives me the 50 of datatype int.</p>
  
  <p>hmm, but i can´t figured it out how to do that..</p>
  
  <p>can someone give me a hand with this pls??</p>