title: Unable to format number in Jasper Reports
body: <p>I am designing a PDF report with iReport 3.7.6, using an XML datasource which contains some prices (Money value), which are introduced a <code>textField</code> in my report, so I used the <code>pattern</code> <code>textField</code> property to set the currency format, but unfortunately it does not format it as i want.</p>
  
  <p>Here you can see the value I want to format as currency in the XML file:</p>
  
  <pre><code>&lt;importFormalitzat&gt;1500.0&lt;/importFormalitzat&gt;
  </code></pre>
  
  <p>This is the JRXML code for the <code>textField</code> where I display the value:</p>
  
  <pre><code>&lt;textField pattern="¤ #,##0.00" isBlankWhenNull="true"&gt;
      &lt;reportElement x="4" y="475" width="181" height="13"/&gt;
      &lt;textElement lineSpacing="Single"&gt;
         &lt;font size="8"/&gt;
      &lt;/textElement&gt;
      &lt;textFieldExpression class="java.lang.Double"&gt;&lt;![CDATA[$F{importFormalitzat} ]]&gt;&lt;/textFieldExpression&gt;
  &lt;/textField&gt;
  </code></pre>
  
  <p>As you can see the pattern I am using to format the value is: <code>pattern="¤ #,##0.00"</code></p>
  
  <p>But the result I get when I preview the report is this: <strong>15000,00</strong></p>
  
  <p>I don't understand why I get 15000,00 while the value I have in the XML file from where I am filling the report is 1500.0.</p>
  
  <p>I tried to change the Java class in the TextField expression to <code>Integer</code>, <code>BigDecimal</code>, but I still do not get the correct value in the report!</p>