https://issues.dlang.org/show_bug.cgi?id=12882

safety0ff.bugz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from safety0ff.bugz <[email protected]> ---
N.B.: ^^ has higher precedence than unary minus:
import std.stdio;

void main() {
    real a = -2;
    real b = -2.1;

    (a ^^ b).writeln;
    ((-2) ^^ -2.1).writeln;
}

This gives:
-nan
nan

The sign of nan has no meaning.

--

Reply via email to