Show / Hide Table of Contents

    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 Source

    Compare(Double, Double)

    Declaration
    public int Compare(double v1, double v2)
    Parameters
    Type Name Description
    System.Double v1
    System.Double v2
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)