Packageorg.servebox.commons.utils
Classpublic class NumberUtils

NumberUtils is a helper class with a lot of static methods to handle numbers.



Public Methods
 MethodDefined by
  
compare(n1:Number, n2:Number):int
[static] Compares two numbers .
NumberUtils
Method detail
compare()method
public static function compare(n1:Number, n2:Number):int

Compares two numbers . Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Parameters
n1:Number
 
n2:Number

Returns
int