Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2098

Decimal128.Compare() gives inaccurate results

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.4
    • Component/s: BSON
    • None

      Decimal128.Compare() returns incorrect results. In the example below, the result should be 0, instead of -1.

      var a = Decimal128.Parse("10");
      var b = Decimal128.Parse("1E1");
      var compres = Decimal128.Compare(a, b);
      

            Assignee:
            john.murphy@mongodb.com John Murphy
            Reporter:
            DrOK Dr OK [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: