This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Shared API for package java.math
editShared API for package java.math
editSee the Shared API for a high-level overview of all packages and classes.
BigDecimal
edit- static BigDecimal ONE
- static BigDecimal TEN
- static BigDecimal ZERO
- static BigDecimal valueOf(double)
- BigDecimal(null)
- BigDecimal(null, MathContext)
- BigDecimal abs()
- BigDecimal abs(MathContext)
- BigDecimal add(BigDecimal)
- BigDecimal add(BigDecimal, MathContext)
- byte byteValue()
- byte byteValueExact()
- int compareTo(BigDecimal)
- BigDecimal divide(BigDecimal)
- BigDecimal divide(BigDecimal, MathContext)
- BigDecimal[] divideAndRemainder(BigDecimal)
- BigDecimal[] divideAndRemainder(BigDecimal, MathContext)
- BigDecimal divideToIntegralValue(BigDecimal)
- BigDecimal divideToIntegralValue(BigDecimal, MathContext)
- double doubleValue()
- boolean equals(Object)
- float floatValue()
- int hashCode()
- int intValue()
- int intValueExact()
- long longValue()
- long longValueExact()
- BigDecimal max(BigDecimal)
- BigDecimal min(BigDecimal)
- BigDecimal movePointLeft(int)
- BigDecimal movePointRight(int)
- BigDecimal multiply(BigDecimal)
- BigDecimal multiply(BigDecimal, MathContext)
- BigDecimal negate()
- BigDecimal negate(MathContext)
- BigDecimal plus()
- BigDecimal plus(MathContext)
- BigDecimal pow(int)
- BigDecimal pow(int, MathContext)
- int precision()
- BigDecimal remainder(BigDecimal)
- BigDecimal remainder(BigDecimal, MathContext)
- BigDecimal round(MathContext)
- int scale()
- BigDecimal scaleByPowerOfTen(int)
- BigDecimal setScale(int)
- BigDecimal setScale(int, RoundingMode)
- short shortValue()
- short shortValueExact()
- int signum()
- BigDecimal stripTrailingZeros()
- BigDecimal subtract(BigDecimal)
- BigDecimal subtract(BigDecimal, MathContext)
- BigInteger toBigInteger()
- BigInteger toBigIntegerExact()
- null toEngineeringString()
- null toPlainString()
- null toString()
- BigDecimal ulp()
BigInteger
edit- static BigInteger ONE
- static BigInteger TEN
- static BigInteger ZERO
- static BigInteger valueOf(long)
- BigInteger(null)
- BigInteger(null, int)
- BigInteger abs()
- BigInteger add(BigInteger)
- BigInteger and(BigInteger)
- BigInteger andNot(BigInteger)
- int bitCount()
- int bitLength()
- byte byteValue()
- byte byteValueExact()
- BigInteger clearBit(int)
- int compareTo(BigInteger)
- BigInteger divide(BigInteger)
- BigInteger[] divideAndRemainder(BigInteger)
- double doubleValue()
- boolean equals(Object)
- BigInteger flipBit(int)
- float floatValue()
- BigInteger gcd(BigInteger)
- int getLowestSetBit()
- int hashCode()
- int intValue()
- int intValueExact()
- long longValue()
- long longValueExact()
- BigInteger max(BigInteger)
- BigInteger min(BigInteger)
- BigInteger mod(BigInteger)
- BigInteger modInverse(BigInteger)
- BigInteger modPow(BigInteger, BigInteger)
- BigInteger multiply(BigInteger)
- BigInteger negate()
- BigInteger not()
- BigInteger or(BigInteger)
- BigInteger pow(int)
- BigInteger remainder(BigInteger)
- BigInteger setBit(int)
- BigInteger shiftLeft(int)
- BigInteger shiftRight(int)
- short shortValue()
- short shortValueExact()
- int signum()
- BigInteger subtract(BigInteger)
- boolean testBit(int)
- byte[] toByteArray()
- null toString()
- null toString(int)
- BigInteger xor(BigInteger)
MathContext
edit- static MathContext DECIMAL128
- static MathContext DECIMAL32
- static MathContext DECIMAL64
- static MathContext UNLIMITED
- MathContext(int)
- MathContext(int, RoundingMode)
- boolean equals(Object)
- int getPrecision()
- RoundingMode getRoundingMode()
- int hashCode()
- null toString()
RoundingMode
edit- static RoundingMode CEILING
- static RoundingMode DOWN
- static RoundingMode FLOOR
- static RoundingMode HALF_DOWN
- static RoundingMode HALF_EVEN
- static RoundingMode HALF_UP
- static RoundingMode UNNECESSARY
- static RoundingMode UP
- static RoundingMode valueOf(null)
- static RoundingMode[] values()
- int compareTo(Enum)
- boolean equals(Object)
- int hashCode()
- null name()
- int ordinal()
- null toString()