net.sf.jasperreports.engine.util
Class BigDecimalUtils
java.lang.Object
net.sf.jasperreports.engine.util.BigDecimalUtils
public final class BigDecimalUtils
- extends Object
Utility methods for BigDecimal handling.
- Version:
- $Id: BigDecimalUtils.java 4595 2011-09-08 15:55:10Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
divide
public static BigDecimal divide(BigDecimal dividend,
BigDecimal divisor)
- Divides two
BigDecimal values.
If running on Java 1.5 or newer, Java15BigDecimalHandler is used to divide
the values. Otherwise, the operation is delegated to Java14BigDecimalHandler.
- Parameters:
dividend - the dividenddivisor - the divisor
- Returns:
- the division result computed by the
BigDecimalHandler instance
Copyright © 2012. All Rights Reserved.