[JAVA-3056] should Decimal128 implement Number and Comparable ? Created: 18/Oct/18 Updated: 27/Nov/18 Resolved: 27/Nov/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Andrei Sereda | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
BigDecimal and BigInteger both implement Number and Comparable. Any reason why Decimal128 doesn't follow suit ? |
| Comments |
| Comment by Jeffrey Yemin [ 27/Nov/18 ] | |||
|
Closing as a duplicate of | |||
| Comment by Jeffrey Yemin [ 18/Oct/18 ] | |||
|
I think we can do by handling positive/negative infinity and NaN similar to the way Float does, e.g.:
|