Safest way for comparing double numbers.
Chek the link: https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
ICPC NA North Central and South Division