convex icon indicating copy to clipboard operation
convex copied to clipboard

-0.0 different than 0.0

Open Darkneew opened this issue 3 years ago • 1 comments

When working with doubles, convex distinguishes 0.0 and -0.0 We can see it here: 0_and_0

This issue raises other issues in other functions, such as here: Capture_decran_2022-08-01_115705

Darkneew avatar Aug 02 '22 02:08 Darkneew

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.

mikera avatar Aug 22 '22 15:08 mikera

Closing as behaviour is as intended

mikera avatar Oct 04 '22 11:10 mikera