[YANGTOOLS-1405] Add Decimal64.valueOf() methods which specify expected precision Created: 10/Mar/22  Updated: 10/Apr/22  Resolved: 13/Mar/22

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0

Type: Improvement Priority: Highest
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   

BGPCEP is a rather heavy user of 'type decimal64', which is now being mapped to yang.common.Decimal64.

It is instantiating Decimal64 values from either a float or a long. In both cases the model defines that fraction-digits are equal to two and there is some weirdness around it as well.

Introduce a few methods to predictably create these values.


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