|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.MathLib
public class MathLib
Math and number functions.
Copyright 2006 Partner Software, Inc.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||