dustjs icon indicating copy to clipboard operation
dustjs copied to clipboard

Zero values stripped from decimals on compilation

Open damondine opened this issue 7 years ago • 0 comments

screen shot 2018-09-05 at 4 29 05 pm

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.

damondine avatar Sep 05 '18 04:09 damondine