Új hozzászólás Aktív témák

  • Jester01

    veterán

    válasz Phausto #6751 üzenetére

    Szerintem nincs ilyen.

    The types of both operands of the less-than operator must be arithmetic types, or a compile-time error occurs.

    Továbbá:

    If either operand is not-a-number (NaN), the comparison produces false.

    Negative infinity is the most negative value. If the left operand is negative infinity, the comparison produces true, unless the right operand is also negative infinity, in which case the comparison produces false.

    Positive infinity is the most positive value. If the right operand is positive infinity, the comparison produces true, unless the left operand is also positive infinity, in which case the comparison produces false.

    Positive and negative zero are treated as equal, so -0.0 < 0.0 produces false.

    A másik két operátorra hasonlóan. Tehát NaN használatával lehetne olyat csinálni, hogy mind a három reláció hamis, de olyat nem, hogy mind a három igaz.

Új hozzászólás Aktív témák