uk.co.silentsoftware.utils
Class MathUtils

java.lang.Object
  extended by uk.co.silentsoftware.utils.MathUtils

public class MathUtils
extends java.lang.Object

Simple class to provide some basic Java SE Math functionality


Constructor Summary
MathUtils()
           
 
Method Summary
static int pow(int value, int times)
          Raise a value to a given power
static double round(double value, int places)
          Round a value to a number of decimal places
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathUtils

public MathUtils()
Method Detail

round

public static double round(double value,
                           int places)
Round a value to a number of decimal places

Parameters:
value -
places -
Returns:

pow

public static int pow(int value,
                      int times)
Raise a value to a given power

Parameters:
value -
times -
Returns: