Class Java14BigDecimalHandler

java.lang.Object
net.sf.jasperreports.engine.util.Java14BigDecimalHandler
All Implemented Interfaces:
BigDecimalHandler

public class Java14BigDecimalHandler extends Object implements BigDecimalHandler
BigDecimalHandler implementation used on Java 1.4.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  • Constructor Details

    • Java14BigDecimalHandler

      public Java14BigDecimalHandler()
  • Method Details

    • divide

      public BigDecimal divide(BigDecimal dividend, BigDecimal divisor)
      Divides the values by using the dividend scale as result scale and RoundingMode.HALF_UP as round mode.
      Specified by:
      divide in interface BigDecimalHandler
      Parameters:
      dividend - the dividend
      divisor - the divisor
      Returns:
      the division result, rounded according to the rules of the specific implementation