Zero values stripped from decimals on compilation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
Description

Found this issue while working on a template using multiple decimal values, if you pass through a value like 0.05, the compiler will strip out all zeroes after the decimal point making 0.05 -> 0.5 after compiling. This doesn't happen to decimals without zeroes as 0.15 still compiles to 0.15.
Screenshot above shows a few different tests with these scenarios, including passing in a variable as 0.05 which works as expected.
Contributor guide
No contributing guide indexed for this repository
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 by reproducing the compiler behavior described in the issue with a literal 0.05 and a variable containing 0.05, then trace the decimal-literal compilation path. Done means decimal literals containing zeroes after the decimal point compile unchanged, while the existing variable behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100