title: Displaying decimal values in Qt using qreal Data Type
body: <p>Is there a way to get decimal values using qreal in Qt??</p>
  
  <p>just like this:</p>
  
  <pre><code>qreal decimal;
  average = 3/2;
  </code></pre>
  
  <p>the output should definitely 1.5 but instead i am getting 1 as  result.</p>
  
  <p>can anyone help me??</p>