Single.Equality Operator

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

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

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


Public Shared Operator = ( _
    left As Single, _
    right As Single _
) As Boolean
public static bool operator ==(
    float left,
    float right


Return Value

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


The Equality method defines the equality operator for Single values.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also


Single Structure

System Namespace