au.cartertech.CalcClasses
Class CarterMath

java.lang.Object
  extended by au.cartertech.CalcClasses.CarterMath

public class CarterMath
extends java.lang.Object

Since:
1.0
Version:
1.0
Author:
Carter Soft

Constructor Summary
CarterMath()
           
 
Method Summary
static double lesserOf(double arg0, double arg1)
          Finds the lesser of two doubles
static int lesserOf(int arg0, int arg1)
          Finds the lesser of two integers
static double round(double arg0)
          Rounds a double to two places after the decimal point
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarterMath

public CarterMath()
Method Detail

lesserOf

public static int lesserOf(int arg0,
                           int arg1)
Finds the lesser of two integers

Parameters:
arg0 - An integer to be compared
arg1 - Another integer to be compared
Returns:
The lesser integer as an int

lesserOf

public static double lesserOf(double arg0,
                              double arg1)
Finds the lesser of two doubles

Parameters:
arg0 - A double to be compared
arg1 - Another double to be compared
Returns:
The lesser double

round

public static double round(double arg0)
Rounds a double to two places after the decimal point

Parameters:
arg0 - The number to be rounded
Returns:
The double rounded to two decimal places