Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Single.Equality Operator

.NET Framework 4.6 and 4.5

Returns a value that indicates whether two specified Single values are equal.

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

public static bool operator ==(
	float left,
	float right
)

Parameters

left
Type: System.Single

The first value to compare.

right
Type: System.Single

The second value to compare.

Return Value

Type: System.Boolean
true if left and right are equal; otherwise, false.

The Equality method defines the equality operator for Single values.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft