Package net.sf.jasperreports.engine.util
Class BigDecimalUtils
- java.lang.Object
-
- net.sf.jasperreports.engine.util.BigDecimalUtils
-
public final class BigDecimalUtils extends Object
Utility methods forBigDecimal
handling.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigDecimal
divide(BigDecimal dividend, BigDecimal divisor)
Divides twoBigDecimal
values.
-
-
-
Method Detail
-
divide
public static BigDecimal divide(BigDecimal dividend, BigDecimal divisor)
Divides twoBigDecimal
values.If running on Java 1.5 or newer,
Java15BigDecimalHandler
is used to divide the values. Otherwise, the operation is delegated toJava14BigDecimalHandler
.- Parameters:
dividend
- the dividenddivisor
- the divisor- Returns:
- the division result computed by the
BigDecimalHandler
instance
-
-