convex
convex copied to clipboard
-0.0 different than 0.0
When working with doubles, convex distinguishes 0.0 and -0.0
We can see it here:

This issue raises other issues in other functions, such as here:

This is mostly IEEE754 expected behaviour I think.
Coupled with the fact that = in Convex very specifically means "the exact same value" so 0.0 and -0.0 are different because they are actually distinct IEEE754 double values.
Closing as behaviour is as intended