Yes using the equals method.
Example:
Double a = new Double(Double.NaN);
Double b = new Double(Double.NaN);
if( a.equals(b) )
System.out.println("True");
else
System.out.println("False");
If you execute the above code snippet you will see "True" in the console. If you try the "==" operator to compare the 2 values a and b you will get only false
Conditional operators are used to compare two values. The result of a comparison is either true or false. Boolean data types can hold the values true or false. Here's a list of operators. = Equal to > Greater than < Less than >= Grater than or equal to <= Less than or equal to <> Not equal to
Single equal signs (=) are used to define a variable. So a = 1 sets a as 1. are used to compare two values.
ye nan on a butty
A quadrillion and one.
A decision is a statement that makes the CPU compare two or more values in a TRUE-or-FALSE way. Once a decision is evaluated, it usually leads to control being diverted to a different part of the program.
You can compare two values.
You can compare their magnitude (absolute values) but not the numbers themselves.
Why have you not try? Of course you can.
Yo nan is yo nan
comparison operators
a poo nan is a nan covered in poo.
Your nan is your grandma!
Nan in German is 'nan' - it doesn't change.
my name is vaibhav jain
Nan Youngman has written: 'Nan Youngman'
nan
"If you interpolate from the values around it, you can find the value of X in this equation." "To interpolate the value, compare it to known values."