C# Single NegativeInfinity
Description
Single NegativeInfinity
represents negative infinity.
This field is constant.
Syntax
Single.NegativeInfinity
has the following syntax.
public const float NegativeInfinity
Example
The following code example demonstrates the NegativeInfinity constant.
/*from w ww .j a v a 2 s . co m*/
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine((10.0 - Single.NegativeInfinity).ToString());
}
}
The code above generates the following result.