[SERVER-19752] Allow NumberDecimal to be constructed from other types in the shell Created: 04/Aug/15 Updated: 06/Dec/22 Resolved: 03/Dec/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Raymond Jacobson | Assignee: | Backlog - Server Tooling and Methods (STM) (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | decimal-data-type, move-sa, move-stm | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Server Tooling & Methods
|
||||||||
| Participants: | |||||||||
| Description |
|
NumberDecimal(NumberLong("5")) should use the Decimal128 wrapper constructors to allow users to construct NumberDecimals in the shell from other types. Note: The decimal128(double) constructor uses a 15 digit quantizing function, which maintains exactly 15 digits of precision when constructing a decimal128 from a double. |
| Comments |
| Comment by Brooke Miller [ 03/Dec/21 ] |
|
STM doesn't have bandwidth to pick this up, so we're closing as won't fix. However, if other teams have capacity and would like to pursue this, please feel free to pick this up. |