[#5815290] Fix decimals

When used as a dependency for the JavaScript Calculator and the Equation Builder, allows only one decimal per numeric expression.

Testing instructions in the JS Calc and EQ builder repos.