편집

다음을 통해 공유


Half.CompareTo(Half) Method

Definition

Compares this instance to a specified half-precision floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified half-precision floating-point number.

public int CompareTo (OpenTK.Half other);
abstract member CompareTo : OpenTK.Half -> int
override this.CompareTo : OpenTK.Half -> int

Parameters

other
Half

A half-precision floating-point number to compare.

Returns

A signed number indicating the relative values of this instance and value. If the number is:

Less than zero, then this instance is less than other, or this instance is not a number (OpenTK.Half.NaN) and other is a number.

Zero: this instance is equal to value, or both this instance and other are not a number (OpenTK.Half.NaN), OpenTK.Half.PositiveInfinity, or OpenTK.Half.NegativeInfinity.

Greater than zero: this instance is greater than othrs, or this instance is a number and other is not a number (OpenTK.Half.NaN).

Implements

Applies to