Details
-
Task
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
-
None
-
2
-
Not Needed
Description
Need to add a check to compare values of NaNs and Infinities with other values of Decimal128. Current implementation will work when you compare -NaN and NaN for example, but not +NaN and 1.24E+4.
For reference, check the c-sharp implementation: https://github.com/mongodb/mongo-csharp-driver/blob/v2.8.1/src/MongoDB.Bson/ObjectModel/Decimal128.cs#L1901
or ideally the java implementation which has the clearest overview imo: https://github.com/mongodb/mongo-java-driver/blob/r3.10.1/bson/src/main/org/bson/types/Decimal128.java#L387-L407