dustjs
dustjs copied to clipboard
Zero values stripped from decimals on compilation

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.