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
BigDecimalHandler
implementation 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 BigDecimal
divide(BigDecimal dividend, BigDecimal divisor)
Divides the values by using the dividend scale as result scale andRoundingMode.HALF_UP
as 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_UP
as round mode.- Specified by:
divide
in interfaceBigDecimalHandler
- Parameters:
dividend
- the dividenddivisor
- the divisor- Returns:
- the division result, rounded according to the rules of the specific implementation
-
-