com.liferay.portal.kernel.util
Class MathUtil
java.lang.Object
com.liferay.portal.kernel.util.MathUtil
- Direct Known Subclasses:
- MathUtil
public class MathUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MathUtil
public MathUtil()
base2Log
public static int base2Log(long x)
base2Pow
public static long base2Pow(int x)
factorial
public static int factorial(int x)
format
public static double format(double x,
int max,
int min)
generatePrimes
public static int[] generatePrimes(int max)
isEven
public static boolean isEven(int x)
isOdd
public static boolean isOdd(int x)