FIELD

Double.NegativeZero

Represents signed floating-point negative zero. It compares equal to positive zero with ==, but operations such as reciprocal division can distinguish the signs.

Formal Syntax & Structure

csharp syntaxcsharp
double value = double.NegativeZero;

Working Example

Example Snippetcsharp
using System;Console.WriteLine(double.NegativeZero == 0.0); // True
C# & .NET Reference