NullableTypes Class Library

NullableSingle.LessThanOrEqual Method 

Compares two instances of NullableSingle structure to determine if the first is less than or equal to the second.

[Visual Basic]
Public Shared Function LessThanOrEqual( _
   ByVal x As NullableSingle, _
   ByVal y As NullableSingle _
) As NullableBoolean
[C#]
public static NullableBoolean LessThanOrEqual(
   NullableSingle x,
   NullableSingle y
);

Parameters

x
A NullableSingle structure.
y
A NullableSingle structure.

Return Value

A NullableBoolean structure that is Null if either instance of NullableSingle is Null, True if the first instance is less than or equal to the second instance, otherwise False.

Remarks

This operator follows IEEE 754 specifications: if either operand is NaN the result is false; negative and positive zero are considered equal; a NegativeInfinity is considered less than all other values, but equal to another NegativeInfinity; a PositiveInfinity is considered greater than all other values, but equal to another PositiveInfinity.

See Also

NullableSingle Class | NullableTypes Namespace