I found many questions.But none helps me
float x = 0.1;
x == 0.1
The above code returns false. since i try to compare double precision value with single precision x.
float x = 0.5
x == 0.5
This one returns true. I cant find why is it returning true?? Any suggestions ??
EDIT : So how do i identify which value has same representation in both precisions??