php > var_dump(bccomp('-10.00001', '-10.0'));
int(0)
php > var_dump(bccomp('-10.00001', '-10.0', 17));
int(-1);
I don't get this at all. Isn't the entire point of the bcmath functions to allow you to do comparisons/arithmatic on floating point values as strings to avoid floating point issues?
Why even have a scale, shouldn't this just work properly every single time? What possible reason could someone want for having two unequal values be returned as equal?