[SERVER-66784] numberDecimalsAlmostEqual doesn't work for negative numbers Created: 26/May/22  Updated: 29/Oct/23  Resolved: 26/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc8, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Hana Pearlman Assignee: Davis Haupt (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-64226 Add shell helper to check equality up... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QO 2022-05-30
Participants:
Linked BF Score: 155

 Description   

NumberDecimal("-104735446372966662851.0135276410897") and NumberDecimal("-104735446372966750508.0426966190306") should be "almost equal", but they are not.



 Comments   
Comment by Githook User [ 26/May/22 ]

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-66784 numberDecimalsAlmostEqual shell helper now works for negative numbers
Branch: v6.0
https://github.com/mongodb/mongo/commit/9c4ec2ed9521dc18b688fccc4c558b16a2366f4b

Comment by Githook User [ 26/May/22 ]

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-66784 numberDecimalsAlmostEqual shell helper now works for negative numbers
Branch: master
https://github.com/mongodb/mongo/commit/7d590de9d679ac590812e42a72675af8897e3b39

Comment by Davis Haupt (Inactive) [ 26/May/22 ]

Requesting 6.0 backport because fuzzer failures were happening on the 6.0 branch

Generated at Thu Feb 08 06:06:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.