title: BigDecimal arithmetic on JSF pages
body: <p>For example, given below a JSF managed bean.</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public final class Bean implements Serializable {
  
      private BigDecimal price; //Getter only.
      private BigDecimal currencyRate; //Getter only.
      private static final long serialVersionUID = 1L;
  
      @PostConstruct
      private void init() {
          price=new BigDecimal(5678);
          currencyRate=new BigDecimal(0.016622);
      }
  }
  </code></pre>
  
  <p>Multiplication of <code>price</code> and <code>currencyRate</code> can be displayed on <code>&lt;h:outputText&gt;</code>.</p>
  
  <pre><code>&lt;h:outputText value="#{bean.price * bean.currencyRate}"/&gt;
  </code></pre>
  
  <p>Does this multiplication yield <code>BigDecimal</code> or it is simply a <code>double</code> value?</p>
  
  <hr>
  
  <p>In other words, is this equivalent to the following?</p>
  
  <pre><code>&lt;h:outputText value="#{bean.price.multiply(bean.currencyRate)}"/&gt;
  </code></pre>
  
  <p>It displays <code>94.3797160000000077070825277303356415359303355216979980468750</code> in both the cases.</p>
  
  <hr>
  
  <p>And what if when there is a converter to display a specified number of decimal digits, two for example as follows?</p>
  
  <pre><code>&lt;h:outputText value="#{bean.price * bean.currencyRate}"
                converter="#{bigDecimalConverter}"/&gt;
  </code></pre>
  
  <p>I want the result of such expressions to be <code>BigDecimal</code> anyway.</p>