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.
- Version:
- $Id: Java14BigDecimalHandler.java 4595 2011-09-08 15:55:10Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
BigDecimalUtils.divide(BigDecimal, BigDecimal)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java14BigDecimalHandler
public Java14BigDecimalHandler()
divide
public BigDecimal divide(BigDecimal dividend,
BigDecimal divisor)
- Divides the values by using the dividend scale as result scale
and
BigDecimal.ROUND_HALF_UP as round mode.
- Specified by:
divide in interface BigDecimalHandler
- Parameters:
dividend - the dividenddivisor - the divisor
- Returns:
- the division result, rounded according to the rules of the
specific implementation
Copyright © 2012. All Rights Reserved.