[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());

Generated at Wed Feb 07 20:56:09 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.