T_Cyjb_DoubleComparer - CYJB/Cyjb GitHub Wiki
表示双精度浮点数的比较器。
System.Object
System.Collections.Generic.Comparer(Double)
Cyjb.DoubleComparer
Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public sealed class DoubleComparer : Comparer<double>
The DoubleComparer type exposes the following members.
名称 | 说明 | |
---|---|---|
![]() |
DoubleComparer | 使用比较时要使用的精度,初始化 DoubleComparer 类的新实例。 |
名称 | 说明 | |
---|---|---|
![]() ![]() |
Default | 获取默认的双精度浮点数比较器。 |
名称 | 说明 | |
---|---|---|
![]() |
Compare | 比较两个双精度浮点数并返回一个值,指示一个双精度浮点数是小于、等于还是大于另一个双精度浮点数。 (重写 Comparer(T).Compare(T, T).) |
![]() |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
![]() |
GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() |
ToString | Returns a string that represents the current object. (继承自 Object。) |
名称 | 说明 | |
---|---|---|
![]() ![]() |
DefaultEpsilon | 比较时使用的默认精度。 |