title: Decimals in Crystal Reports
body: <p>I spent a few days with a problem that is not how to solve it. I'm doing a report in Crystal Reports with Visual Studio 2010 and it works correctly so far all I have to show decimals, which magically always rounded to the nearest integer, ie if the number is 13.80 rounded to the 14, when I want to leave 13.80.</p>
  
  <p>The stored procedure that retrieves the database retrieves the data correctly. The report and created a variable called "normal" to have a little formula created, that is:</p>
  
  <pre><code>if {pr_recuperar_apuntes_trabajador2; 1.tipo_apunte} = '3 'then
  
              {pr_recuperar_apuntes_trabajador2; 1.Quantity};
  </code></pre>
  
  <p>This makes all that proves is that the "tipo_apunte" is the number 3 to show the amount, if it shows nothing. I imagine that the problem is in the formula, but not how to fix it.</p>