how to compare two double values

hello i want to compare two double values
double x = 3072.00000000;
double y = 3072.0000000;
when checking with if its not working
if(x==y) it not working please help me
Topic archived. No new replies allowed.