public boolean isNaN() {
    return value instanceof Double && ((Double)value).isNaN() || value instanceof Float && ((Float)value).isNaN();
  }
public boolean isNaN ( ) { return value instanceof Double && ( ( Double ) value ) . isNaN ( ) || value instanceof Float && ( ( Float ) value ) . isNaN ( ) ; }
@return {@code true} when this number represents {@code NaN}