I think its not possible.
Please check your question. Maybe its
float i = 1.1;
double j = 1.1;
And when you compare these 2 , i.e (i == j), the result will be 0 or false.
It involves the concept of the IEEE 754 Standard for storing Floating-Point and Double.
If thats the case, we can have a discussion on that.