@GwtCompatible public class BigDecimalExtensions extends Object
big decimal numbers.| Constructor and Description |
|---|
BigDecimalExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
operator_divide(BigDecimal a,
BigDecimal b)
The binary
divide operator. |
static BigDecimal |
operator_minus(BigDecimal a)
The unary
minus operator. |
static BigDecimal |
operator_minus(BigDecimal a,
BigDecimal b)
The binary
minus operator. |
static BigDecimal |
operator_multiply(BigDecimal a,
BigDecimal b)
The binary
times operator. |
static BigDecimal |
operator_plus(BigDecimal a,
BigDecimal b)
The binary
plus operator. |
static BigDecimal |
operator_power(BigDecimal a,
int exponent)
The
power operator. |
@Pure public static BigDecimal operator_minus(BigDecimal a)
minus operator.a - a BigDecimal. May not be null.-aNullPointerException - if a is null.@Pure public static BigDecimal operator_plus(BigDecimal a, BigDecimal b)
plus operator.a - a BigDecimal. May not be null.b - a BigDecimal. May not be null.a.add(b)NullPointerException - if a or b is null.@Pure public static BigDecimal operator_minus(BigDecimal a, BigDecimal b)
minus operator.a - a BigDecimal. May not be null.b - a BigDecimal. May not be null.a.subtract(b)NullPointerException - if a or b is null.@Pure public static BigDecimal operator_power(BigDecimal a, int exponent)
power operator.a - a BigDecimal. May not be null.exponent - the exponent.a.pow(b)NullPointerException - if a is null.@Pure public static BigDecimal operator_multiply(BigDecimal a, BigDecimal b)
times operator.a - a BigDecimal. May not be null.b - a BigDecimal. May not be null.a.multiply(b)NullPointerException - if a or b is null.@Pure public static BigDecimal operator_divide(BigDecimal a, BigDecimal b)
divide operator.a - a BigDecimal. May not be null.b - a BigDecimal. May not be null.a.divide(b, MathContext.DECIMAL128)NullPointerException - if a or b is null.Copyright © 2015. All Rights Reserved.