Class SignedZeroComparer
LUCENENET specific comparer to handle the special case of comparing negative zero with positive zero.
For IEEE floating-point numbers, there is a distinction of negative and positive zero. Reference: http://stackoverflow.com/a/3139636
Inheritance
System.Object
SignedZeroComparer
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public class SignedZeroComparer : IComparer<double>
Methods
| Improve this Doc View SourceCompare(Double, Double)
Declaration
public int Compare(double v1, double v2)
Parameters
Type | Name | Description |
---|---|---|
System. |
v1 | |
System. |
v2 |
Returns
Type | Description |
---|---|
System. |