Class IEEE754rUtils
- java.lang.Object
 - 
- org.apache.commons.lang.math.IEEE754rUtils
 
 
- 
@Deprecated(since="2021-04-30") public class IEEE754rUtils extends java.lang.ObjectDeprecated.Commons Lang 2 is in maintenance mode. Commons Lang 3 should be used instead.Provides IEEE-754r variants of NumberUtils methods.
- Since:
 - 2.4
 
 
- 
- 
Constructor Summary
Constructors Constructor Description IEEE754rUtils()Deprecated. 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static doublemax(double[] array)Deprecated.Returns the maximum value in an array.static doublemax(double a, double b)Deprecated.Gets the maximum of twodoublevalues.static doublemax(double a, double b, double c)Deprecated.Gets the maximum of threedoublevalues.static floatmax(float[] array)Deprecated.Returns the maximum value in an array.static floatmax(float a, float b)Deprecated.Gets the maximum of twofloatvalues.static floatmax(float a, float b, float c)Deprecated.Gets the maximum of threefloatvalues.static doublemin(double[] array)Deprecated.Returns the minimum value in an array.static doublemin(double a, double b)Deprecated.Gets the minimum of twodoublevalues.static doublemin(double a, double b, double c)Deprecated.Gets the minimum of threedoublevalues.static floatmin(float[] array)Deprecated.Returns the minimum value in an array.static floatmin(float a, float b)Deprecated.Gets the minimum of twofloatvalues.static floatmin(float a, float b, float c)Deprecated.Gets the minimum of threefloatvalues. 
 - 
 
- 
- 
Method Detail
- 
min
public static double min(double[] array)
Deprecated.Returns the minimum value in an array.
- Parameters:
 array- an array, must not be null or empty- Returns:
 - the minimum value in the array
 - Throws:
 java.lang.IllegalArgumentException- ifarrayisnulljava.lang.IllegalArgumentException- ifarrayis empty
 
- 
min
public static float min(float[] array)
Deprecated.Returns the minimum value in an array.
- Parameters:
 array- an array, must not be null or empty- Returns:
 - the minimum value in the array
 - Throws:
 java.lang.IllegalArgumentException- ifarrayisnulljava.lang.IllegalArgumentException- ifarrayis empty
 
- 
min
public static double min(double a, double b, double c)Deprecated.Gets the minimum of three
doublevalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2c- value 3- Returns:
 - the smallest of the values
 
 
- 
min
public static double min(double a, double b)Deprecated.Gets the minimum of two
doublevalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2- Returns:
 - the smallest of the values
 
 
- 
min
public static float min(float a, float b, float c)Deprecated.Gets the minimum of three
floatvalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2c- value 3- Returns:
 - the smallest of the values
 
 
- 
min
public static float min(float a, float b)Deprecated.Gets the minimum of two
floatvalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2- Returns:
 - the smallest of the values
 
 
- 
max
public static double max(double[] array)
Deprecated.Returns the maximum value in an array.
- Parameters:
 array- an array, must not be null or empty- Returns:
 - the minimum value in the array
 - Throws:
 java.lang.IllegalArgumentException- ifarrayisnulljava.lang.IllegalArgumentException- ifarrayis empty
 
- 
max
public static float max(float[] array)
Deprecated.Returns the maximum value in an array.
- Parameters:
 array- an array, must not be null or empty- Returns:
 - the minimum value in the array
 - Throws:
 java.lang.IllegalArgumentException- ifarrayisnulljava.lang.IllegalArgumentException- ifarrayis empty
 
- 
max
public static double max(double a, double b, double c)Deprecated.Gets the maximum of three
doublevalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2c- value 3- Returns:
 - the largest of the values
 
 
- 
max
public static double max(double a, double b)Deprecated.Gets the maximum of two
doublevalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2- Returns:
 - the largest of the values
 
 
- 
max
public static float max(float a, float b, float c)Deprecated.Gets the maximum of three
floatvalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2c- value 3- Returns:
 - the largest of the values
 
 
- 
max
public static float max(float a, float b)Deprecated.Gets the maximum of two
floatvalues.NaN is only returned if all numbers are NaN as per IEEE-754r.
- Parameters:
 a- value 1b- value 2- Returns:
 - the largest of the values
 
 
 - 
 
 -