[DRIVERS-874] $mod has inconsistent rounding/truncation behavior Created: 21/Sep/18  Updated: 27/May/22  Resolved: 10/May/21

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Sara Williamson Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-32960 $mod has inconsistent rounding/trunca... Closed
Server Compat: 3.6, 4.0, 4.2, 4.4, 4.9

 Description   

See DOCS-7792 - $mod will truncate a double (e.g. 2.7 -> 2), but will round decimals, ties to even (e.g. 3.5 -> 4).

We should be consistent here, probably truncating decimals as well as doubles.



 Comments   
Comment by Esha Bhargava [ 10/May/21 ]

No driver changes needed.

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