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
ye nan on a butty
Single equal signs (=) are used to define a variable. So a = 1 sets a as 1. are used to compare two values.
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
a poo nan is a nan covered in poo.
comparison operators
Your nan is your grandma!
Nan in German is 'nan' - it doesn't change.
Nan Youngman has written: 'Nan Youngman'
my name is vaibhav jain
nan
what does nan mean in chinese. Eg nanjing nan