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 BigDecimalUtils

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

    public final class BigDecimalUtils

extends java.lang.Object

Utility methods for `BigDecimal` handling.

Version:
  $Id: BigDecimalUtils.java 3712 2010-04-08 09:53:09Z teodord $
Author:
  Lucian Chirita (lucianc@users.sourceforge.net)

Method Summary
`static java.math.BigDecimal` | `divide(java.math.BigDecimal dividend, java.math.BigDecimal divisor)` Divides two `BigDecimal` values.

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

Method Detail

### divide

    public static java.math.BigDecimal divide(java.math.BigDecimal dividend,
                                              java.math.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 dividend
    `divisor` - the divisor
  Returns:
    the division result computed by the `BigDecimalHandler` instance

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