de.adom.jade.utils
Class MathUtils

java.lang.Object
  extended by de.adom.jade.utils.MathUtils

public class MathUtils
extends java.lang.Object

Provides a number of basic mathematical functions that Sun seems to have forgotten when implementing the Math class.


Method Summary
static int sgn(long value)
          Returns the sign of the given number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sgn

public static int sgn(long value)
Returns the sign of the given number. If the number is negative, -1 is returned. If the number is positive, +1 is returned. Otherwise is returned.

Parameters:
value - the value to check
Returns:
the sign as specified in the method description