Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.jasperreports.engine.util
Class Java14BigDecimalHandler

    java.lang.Object
      net.sf.jasperreports.engine.util.Java14BigDecimalHandler

All Implemented Interfaces:
  BigDecimalHandler

    public class Java14BigDecimalHandler

extends java.lang.Object
implements BigDecimalHandler

`BigDecimalHandler` implementation used on Java 1.4.

Version:
  $Id: Java14BigDecimalHandler.java 3034 2009-08-27 11:58:04Z teodord $
Author:
  Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  `BigDecimalUtils.divide(BigDecimal, BigDecimal)`

Constructor Summary
`Java14BigDecimalHandler()`

Method Summary
`java.math.BigDecimal` | `divide(java.math.BigDecimal dividend, java.math.BigDecimal divisor)` Divides the values by using the dividend scale as result scale and `BigDecimal.ROUND_HALF_UP` as round mode.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Java14BigDecimalHandler

    public Java14BigDecimalHandler()

Method Detail

### divide

    public java.math.BigDecimal divide(java.math.BigDecimal dividend,
                                       java.math.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 dividend
    `divisor` - the divisor
  Returns:
    the division result, rounded according to the rules of the specific implementation

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com