java.math 包的共享 API
编辑java.math 包的共享 API
编辑请参阅 共享 API,了解所有包和类的概述。
BigDecimal
编辑- 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
编辑- 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
编辑- 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
编辑- 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()