[YANGTOOLS-1438] Decimal64.toString() loses negative sign Created: 24/May/22 Updated: 24/May/22 Resolved: 24/May/22 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | common |
| Affects Version/s: | None |
| Fix Version/s: | 9.0.0, 8.0.6 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Decimal64.toCanonicalString() fails to carry the sign when the integer part is equal to 0. This snippet fails: assertEquals("-0.63", Decimal64.valueOf("-0.63").toString()); |