title: How to remove trailing zeros from a string?
body: <p>I have a string <code>salePrice</code> which can have values like <code>29.90000,91.01000</code> and i want to get the output like <code>29.90,91.01</code> as in with the two digits after decimal points. i am using a string. </p>