[SERVER-64226] Add shell helper to check equality up to a specified number of digits for NumberDecimal Created: 04/Mar/22  Updated: 29/Oct/23  Resolved: 14/Mar/22

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

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

Issue Links:
Depends
Related
is related to SERVER-66784 numberDecimalsAlmostEqual doesn't wor... Closed
Backwards Compatibility: Fully Compatible
Sprint: QO 2022-03-21
Participants:

 Description   

NumberDecimals are almost completely opaque in the shell. In order to silence fuzzer errors due to rounding errors like we do for floating points, we should expose a helper function numberDecimalAlmostEqual that can be used by the fuzzer when comparing query results.



 Comments   
Comment by Githook User [ 14/Mar/22 ]

Author:

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

Message: SERVER-64226 Add shell helper to check equality up to a specified number of digits for NumberDecimal
Branch: master
https://github.com/mongodb/mongo/commit/314a51dc20c5558d802af836ee838a6479ea843a

Generated at Thu Feb 08 05:59:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.