Package com.google.common.math
Class BigIntegerMath.BigIntegerToDoubleRounder
java.lang.Object
com.google.common.math.ToDoubleRounder<BigInteger>
com.google.common.math.BigIntegerMath.BigIntegerToDoubleRounder
- Enclosing class:
BigIntegerMath
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final BigIntegerMath.BigIntegerToDoubleRounder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) BigIntegerminus(BigInteger a, BigInteger b) Returns a - b, guaranteed that both arguments are nonnegative.(package private) doubleroundToDoubleArbitrarily(BigInteger bigInteger) Returns x rounded to either the greatest double less than or equal to the precise value of x, or the least double greater than or equal to the precise value of x.(package private) intsign(BigInteger bigInteger) Returns the sign of x: either -1, 0, or 1.(package private) BigIntegertoX(double d, RoundingMode mode) Returns d's value as an X, rounded with the specified mode.Methods inherited from class com.google.common.math.ToDoubleRounder
roundToDouble
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BigIntegerToDoubleRounder
private BigIntegerToDoubleRounder()
-
-
Method Details
-
roundToDoubleArbitrarily
Description copied from class:ToDoubleRounderReturns x rounded to either the greatest double less than or equal to the precise value of x, or the least double greater than or equal to the precise value of x.- Specified by:
roundToDoubleArbitrarilyin classToDoubleRounder<BigInteger>
-
sign
Description copied from class:ToDoubleRounderReturns the sign of x: either -1, 0, or 1.- Specified by:
signin classToDoubleRounder<BigInteger>
-
toX
Description copied from class:ToDoubleRounderReturns d's value as an X, rounded with the specified mode.- Specified by:
toXin classToDoubleRounder<BigInteger>
-
minus
Description copied from class:ToDoubleRounderReturns a - b, guaranteed that both arguments are nonnegative.- Specified by:
minusin classToDoubleRounder<BigInteger>
-