| Modifier and Type | Method and Description |
|---|---|
static long |
combinations(int n,
int m)
Returns the number of combinations of n things, taken m at a time.
|
static long |
factorial(int n)
Returns the factorial of the given input (n!).
|
static double |
setPrecision(double victim,
int places)
Reduces the precision of a double-precision number by rounding it to a
specified number of decimal places.
|
static float |
setPrecision(float victim,
int places)
Reduces the precision of a floating-point number by rounding it to a
specified number of decimal places.
|
public static double setPrecision(double victim,
int places)
public static float setPrecision(float victim,
int places)
public static long factorial(int n)
n - public static long combinations(int n,
int m)
n - m -