4 ms·
I wonder if negative zero is redundant or actually has some uses.
by high_byte 5y ago
I wonder if negative zero is redundant or actually has some uses.
- kzrdude 5y agoIt is carrying data now, so I'm sure many programs use it.
- kurlberg 5y agoYes, it has uses. E.g., see Kahan's "Branch Cuts for Complex Elementary Functions, or Much Ado About Nothing's Sign Bit", copy available at https://people.freebsd.org/~das/kahan86branch.pdf https://people.freebsd.org/~das/kahan86branch.pdf (he gives an example regarding complex branch cuts and fluid dynamics applications.)