• Negative zero doesn't exist

    From Mr Flibble@21:1/5 to All on Thu May 29 22:02:42 2025
    Negative zero doesn't exist (in mathematics) so it was a mistake to give
    it a representation in IEEE 754: zero should have a single representation.

    /Flibble

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeff Barnett@21:1/5 to Mr Flibble on Thu May 29 17:09:27 2025
    On 5/29/2025 4:02 PM, Mr Flibble wrote:
    Negative zero doesn't exist (in mathematics) so it was a mistake to give
    it a representation in IEEE 754: zero should have a single representation.
    Doesn't the IEEE spec require that -0=+0 if a compare is done?
    --
    Jeff Barnett

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mikko@21:1/5 to Mr Flibble on Fri May 30 11:16:52 2025
    On 2025-05-29 22:02:42 +0000, Mr Flibble said:

    Negative zero doesn't exist (in mathematics) so it was a mistake to give
    it a representation in IEEE 754: zero should have a single representation.

    That is true in the sense that there is only one zero in a number system
    and that zero is nither negative nor positive.

    However, when working with approximate values it may be useful to know
    whether the true value is positive or negative even when for other values
    a little more or less is insignifcant. One such case is temperature where
    the difference between -0.1 °C can be significantly different from +0.1 °C for practical purpoises even when the difference between, say, 5 °C and
    6 °C isn't.

    --
    Mikko

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Heathfield@21:1/5 to Mikko on Fri May 30 10:09:44 2025
    On 30/05/2025 09:16, Mikko wrote:

    <snip>

    However, when working with approximate values it may be useful
    to know whether the true value is positive or negative even
    when for other values a little more or less is insignifcant.
    One such case is temperature where the difference between -0.1
    °C can be significantly different from +0.1 °C for practical
    purpoises even when the difference between, say, 5 °C and 6 °C
    isn't.

    Practical porpoises will avoid -0.1°C because it makes swimming
    too difficult.

    --
    Richard Heathfield
    Email: rjh at cpax dot org dot uk
    "Usenet is a strange place" - dmr 29 July 1999
    Sig line 4 vacant - apply within

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Damon@21:1/5 to Richard Heathfield on Fri May 30 10:10:25 2025
    On 5/30/25 5:09 AM, Richard Heathfield wrote:
    On 30/05/2025 09:16, Mikko wrote:

    <snip>

    However, when working with approximate values it may be useful
    to know whether the true value is positive or negative even
    when for other values a little more or less is insignifcant.
    One such case is temperature where the difference between -0.1
    °C can be significantly different from +0.1 °C for practical
    purpoises even when the difference between, say, 5 °C and 6 °C
    isn't.

    Practical porpoises will avoid -0.1°C because it makes swimming too difficult.


    But porpoises swim in salt water, which will still be liquid at that temperature, but colder than they like.


    Minus 0 in IEEE is mostly an artifact of the representation, being a
    sign + magnatude representation.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fred. Zwarts@21:1/5 to All on Sat May 31 13:46:37 2025
    Op 30.mei.2025 om 16:10 schreef Richard Damon:
    On 5/30/25 5:09 AM, Richard Heathfield wrote:
    On 30/05/2025 09:16, Mikko wrote:

    <snip>

    However, when working with approximate values it may be useful
    to know whether the true value is positive or negative even
    when for other values a little more or less is insignifcant.
    One such case is temperature where the difference between -0.1
    °C can be significantly different from +0.1 °C for practical
    purpoises even when the difference between, say, 5 °C and 6 °C
    isn't.

    Practical porpoises will avoid -0.1°C because it makes swimming too
    difficult.


    But porpoises swim in salt water, which will still be liquid at that temperature, but colder than they like.


    Minus 0 in IEEE is mostly an artifact of the representation, being a
    sign + magnatude representation.


    Other systems have even more possibilities to represent 0. E.g., pencil
    and paper can be used to represent 0 as 0, 0.0, 0.00, 000, 00.0, 0.0E0,
    -0.0, etc. It is not uncommon that a single number can be represented in different ways in certain systems. Usually, nobody makes a problem of
    it, as it is understood that always the same number is represented.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mikko@21:1/5 to Fred. Zwarts on Sun Jun 1 12:05:28 2025
    On 2025-05-31 11:46:37 +0000, Fred. Zwarts said:

    Op 30.mei.2025 om 16:10 schreef Richard Damon:
    On 5/30/25 5:09 AM, Richard Heathfield wrote:
    On 30/05/2025 09:16, Mikko wrote:

    <snip>

    However, when working with approximate values it may be useful
    to know whether the true value is positive or negative even
    when for other values a little more or less is insignifcant.
    One such case is temperature where the difference between -0.1
    °C can be significantly different from +0.1 °C for practical
    purpoises even when the difference between, say, 5 °C and 6 °C
    isn't.

    Practical porpoises will avoid -0.1°C because it makes swimming too difficult.


    But porpoises swim in salt water, which will still be liquid at that
    temperature, but colder than they like.


    Minus 0 in IEEE is mostly an artifact of the representation, being a
    sign + magnatude representation.

    Other systems have even more possibilities to represent 0. E.g., pencil
    and paper can be used to represent 0 as 0, 0.0, 0.00, 000, 00.0, 0.0E0,
    -0.0, etc. It is not uncommon that a single number can be represented
    in different ways in certain systems. Usually, nobody makes a problem
    of it, as it is understood that always the same number is represented.

    In the above examples it is easy to see that all expressions donote the
    same number. But there are (rational or real) numbers that are not that
    easy, for example 2:45, 2.75, and 2 3/4.

    --
    Mikko

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)