title: Why do I get the constructor BigDecimal(Number) is undefined?
body: <p>I have made a variable in Jasper Reports with a Value Class Name of <code>java.math.BigDecimal</code>. I set the expression as:</p>
  
  <pre><code>new BigDecimal(PRODUCT($F{CurrentValue},100)).divide($V{current_val_total})
  </code></pre>
  
  <p>but I keep getting the error:</p>
  
  <pre><code>The constructor BigDecimal(Number) is undefined 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
  1. The constructor BigDecimal(Number) is undefined
              value = new BigDecimal(PRODUCT (((java.math.BigDecimal)field_CurrentValue.getValue()),100)).divide(((java.math.BigDecimal)variable_current_val_total.getValue())); //$JR_EXPR_ID=18$
                      &lt;---------------------------------------------------------------------------------&gt;
  2. The constructor BigDecimal(Number) is undefined
              value = new BigDecimal(PRODUCT (((java.math.BigDecimal)field_CurrentValue.getOldValue()),100)).divide(((java.math.BigDecimal)variable_current_val_total.getOldValue())); //$JR_EXPR_ID=18$
                      &lt;------------------------------------------------------------------------------------&gt;
  3. The constructor BigDecimal(Number) is undefined
              value = new BigDecimal(PRODUCT (((java.math.BigDecimal)field_CurrentValue.getValue()),100)).divide(((java.math.BigDecimal)variable_current_val_total.getEstimatedValue())); //$JR_EXPR_ID=18$
                      &lt;---------------------------------------------------------------------------------&gt;
  3 errors
  .
  at   net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:215)
  at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:195)
  at com.jaspersoft.studio.editor.preview.view.control.ReportControler.compileJasperDesign(ReportControler.java:439)
  at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$15(ReportControler.java:416)
  at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:341)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
  </code></pre>
  
  <p>How can I solve this?</p>