[COMPASS-3657] decimal128: format to_string Created: 22/May/19 Updated: 23/May/19 Resolved: 23/May/19 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Irina Shestak (Inactive) | Assignee: | Irina Shestak (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | COMPASS-3418 |
| Story Points: | 5 |
| Sprint: | Iteration Echidna |
| Description |
|
decimal128 should be formatted to string based on whether the number is scientific and how large either the exponent or significand are. follow ruby's implementation: https://github.com/mongodb/bson-ruby/blob/master/lib/bson/decimal128/builder.rb#L378-L396 |