public abstract class IntegerMath
extends java.lang.Object
A subset of JavaScript's Math functions applicable to type integer
.
Constructor and Description |
---|
IntegerMath() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
abs(java.math.BigInteger x)
Return Math.abs(x).
|
static java.math.BigInteger |
max(java.math.BigInteger x,
java.math.BigInteger y)
Return Math.max(x, y).
|
static java.math.BigInteger |
min(java.math.BigInteger x,
java.math.BigInteger y)
Return Math.min(x, y).
|
static int |
sign(java.math.BigInteger x)
Return Math.sign(x).
|
public static java.math.BigInteger abs(java.math.BigInteger x)
Return Math.abs(x).
x
- Argument value.public static java.math.BigInteger max(java.math.BigInteger x, java.math.BigInteger y)
Return Math.max(x, y).
x
- First argument.y
- Second argument.public static java.math.BigInteger min(java.math.BigInteger x, java.math.BigInteger y)
Return Math.min(x, y).
x
- First argument.y
- Second argument.