I am doing a program of finding an exocenter of a triangle.
In one case I want to check if the floating point number is zero or not. I am finding out like this
This detects hold = 0.000000 nicely but fails when hold = -0.000000!!! What should i do now to detect both! I am using MinGW compiler with CodeBlocks!Code:if( !fabs(hold) ) return true; else return false;