How to compare two double?

Revision en1, by anajin, 2015-06-07 04:59:50

In the latest contest, i got trouble in problem H.
When i want to compare x is lager than y, i use x>y+eps (i learn this from a book), but i get WRONG ANWSER , but when i just use x>y ,then i accept .
I just wonder which one is true. Thx first.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English anajin 2015-06-07 04:59:50 344 Initial revision (published)