Better way to compare two floats When you compare two floats, you'd better not directly compare them. Because in the calculation handled by computer, some minor difference will be introduced into infinities. Try to compare floats if they are equal ...
Posted at 2016-02-07 21:16:37
by Ares Ou