IsNegativeInfinity Method

Single.IsNegativeInfinity Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a value indicating whether the specified number evaluates to negative infinity.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static bool IsNegativeInfinity(
	float f
)

Parameters

f
Type: System.Single
A single-precision floating-point number.

Return Value

Type: System.Boolean
true if f evaluates to NegativeInfinity; otherwise, false.

Floating-point operations return NegativeInfinity to signal an overflow condition.

The following code example demonstrates the IsNegativeInfinity method.


// This will return true.
outputBlock.Text += String.Format("IsNegativeInfinity(-5.0F / 0) == {0}.", Single.IsNegativeInfinity(-5.0F / 0) ? "true" : "false") + "\n";


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft