System.Single.op_Equality Method

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

Syntax

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

Parameters

left
The first value to compare.
right
The second value to compare.

Returns

true if left and right are equal; otherwise, false.

Remarks

The float.op_Equality(float, float) method defines the equality operator for float values.

Requirements

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