c++ - Compare double to zero using epsilon - Stack Overflow
An aproximation of epsilon (smallest possible difference) around a number (1.0, 0.0, ...) can be printed with the following program. It prints the following output: epsilon for 0.0 is 4.940656e-324 epsilon for 1.0 is 2.220446e-16 A little thinking makes i...