Decimal literal exceeded maximum scale supported (6)
Open
Nobody has claimed this yet.
fhirpath
new feature
- Dominant language
- Java
- Stars
- 134
- Forks
- 24
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 8
Description
Fhirpath spec:
The Decimal type represents real values in the range (-10^28+1)/10^8 to (10^28-1)/10^8 with a step size of 10^-8.
Details
au.csiro.pathling.errors.InvalidUserInputError: Decimal literal exceeded maximum scale supported (6): 0.66666667
- 1.2 / 1.8 = 0.66666667 [** testDivide5]
au.csiro.pathling.errors.InvalidUserInputError: Decimal literal exceeded maximum scale supported (6): 0.6666667
- 1.2 / 1.8 != 0.6666667 [** testNEquality22]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the decimal handling involved in the reported failures, using testDivide5 and testNEquality22 as the entry points. Check how the implementation validates decimal scale against the FHIRPath specification, then run those tests; done means the reported literals are accepted and their expected comparisons pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100