METHOD

Double.IsNegative

Tests the sign bit of a double, including negative zero. This is not equivalent to value < 0, and does not establish that a value is finite.

Formal Syntax & Structure

csharp syntaxcsharp
double.IsNegative(value)

Working Example

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