| Package | Description |
|---|---|
| com.codename1.util |
General utilities classes
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
BigDecimal.add(BigDecimal b) |
BigDecimal |
BigDecimal.add(BigInteger b) |
BigDecimal |
BigDecimal.adjustScale(int newScale) |
BigDecimal |
BigDecimal.divide(BigDecimal b) |
BigDecimal |
BigDecimal.divide(BigInteger b) |
static BigDecimal |
BigDecimal.getInstance(BigInteger value,
int scale)
Deprecated.
This method is not part of the JDK's
BigDecimal class and its presence is historical,
as the first implementation of Codename One's BigDecimal class was ported from BouncyCastle, which is different
than the JDK's BigDecimal class in that is optimizes binary arithmetic. The implementation of this method
is counter-intuitive since it performs a bitwise left shift on value before scaling it. Use BigDecimal(com.codename1.util.BigInteger, int)
instead if you just want to convert a BigInteger into a BigDecimal. Do not rely on this method
as it will be removed in a future version of Codename One.. |
BigDecimal |
BigDecimal.multiply(BigDecimal b) |
BigDecimal |
BigDecimal.multiply(BigInteger b) |
BigDecimal |
BigDecimal.negate() |
BigDecimal |
BigDecimal.shiftLeft(int n) |
BigDecimal |
BigDecimal.subtract(BigDecimal b) |
BigDecimal |
BigDecimal.subtract(BigInteger b) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
BigDecimal.add(BigDecimal b) |
int |
BigDecimal.compareTo(BigDecimal val) |
BigDecimal |
BigDecimal.divide(BigDecimal b) |
BigDecimal |
BigDecimal.multiply(BigDecimal b) |
BigDecimal |
BigDecimal.subtract(BigDecimal b) |
Copyright © 2023. All rights reserved.