
21 Jan
2025
21 Jan
'25
6:24 p.m.
On Tuesday, January 21st, 2025 at 12:50 PM, Peter Dimov via Boost
I'm not quite sure whether zero needs to be a special case here. There's special
case logic in operator< for it, but I'm not positive it's needed.
Specifically,
https://github.com/cppalliance/decimal/blob/069c26a111b33123e6ce5c34b4bb0077...
here it looks like -0.0 is considered less than +0.0, but is this correct? -0 and +0 are equal.
I don't remember why the distinction was made, but I just looked through IEEE 754-2019 and there is not a difference in the Decimal case. Funny enough I asked Claude 3.5 Sonnet, and it linked me to my own documentation. Matt