|
Boost : |
From: Matt Borland (matt_at_[hidden])
Date: 2025-01-21 18:24:25
On Tuesday, January 21st, 2025 at 12:50 PM, Peter Dimov via Boost <boost_at_[hidden]> wrote:
>
>
> > 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,
>
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk