User`s guide
Using Class Methods
Input Parameters
value
double
valuetotestforfiniteness
Example — Testing for Finite Array Values
Test x for finiteness:
double x = 25;
if (MWNumericArray.isFinite(x))
System.out.println("The input value is finite");
When run, the example displays this output:
The input value is finite
isInf. This method tests for infinity in a machine-independent manner. This
is a static method o f the class and does not need to be invoked in reference
to an instance of the class.
The prototype for the
isInf method is as fo llow s:
public static boolean isInf(double value)
Input Parameters
value
double
value to test for infinity
Example — Testing for Infinite Array Values
4-73