ItemColumnQuotientExpression

Description

A report function that calculates the quotient of two fields (columns) from the current row.

This function expects its input values to be java.lang.Number instances.

The function understands two parameters.

  • dividend parameter is required and denotes the name of an Item Section field which is used as dividend.
  • divisor parameter is required and denotes the name of an Item Section field which is used as divisor.

Example

<expression name="saved" class="org.jfree.report.function.ItemColumnQuotientExpression">
  <properties>
    <property name="dividend">article.price</property>
    <property name="divisor">article.reducedPrice</property>
  </properties>
</expression>