-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
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.)
- documents
-
SERVER-32960 $mod has inconsistent rounding/truncation behavior
- Closed