[DOCS-13855] Investigate changes in SERVER-32960: $mod has inconsistent rounding/truncation behavior Created: 28/Aug/20  Updated: 13/Nov/23  Resolved: 21/Jul/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.9.0, 4.0.22, 3.6.22, 4.2.12, 4.4.3, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Ian Fogelman
Resolution: Fixed Votes: 0
Labels: bite-sized
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-32960 $mod has inconsistent rounding/trunca... Closed
Participants:
Days since reply: 3 years, 23 weeks, 5 days ago
Epic Link: DOCSP-9747

 Description   

Description

Downstream Change Summary

$mod now truncates it's decimal arguments (not input) towards zero. Before this change $mod truncated them to the nearest integer

Description of Linked Ticket

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.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)


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