Package net.sf.jasperreports.engine.util
Class Java14BigDecimalHandler
- java.lang.Object
-
- net.sf.jasperreports.engine.util.Java14BigDecimalHandler
-
- All Implemented Interfaces:
BigDecimalHandler
public class Java14BigDecimalHandler extends Object implements BigDecimalHandler
BigDecimalHandlerimplementation used on Java 1.4.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
BigDecimalUtils.divide(BigDecimal, BigDecimal)
-
-
Constructor Summary
Constructors Constructor Description Java14BigDecimalHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimaldivide(BigDecimal dividend, BigDecimal divisor)Divides the values by using the dividend scale as result scale andRoundingMode.HALF_UPas round mode.
-
-
-
Method Detail
-
divide
public BigDecimal divide(BigDecimal dividend, BigDecimal divisor)
Divides the values by using the dividend scale as result scale andRoundingMode.HALF_UPas round mode.- Specified by:
dividein interfaceBigDecimalHandler- Parameters:
dividend- the dividenddivisor- the divisor- Returns:
- the division result, rounded according to the rules of the specific implementation
-
-