I’ve tried adding a parseFloat and toFixed to this, but to no avail. Anyone know why the percentage isn’t using the decimal?
Here the example : http://jsfiddle.net/NyE2d/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your code was rounding it to the nearest integer. Of course that won’t show any decimal.
It works fine when you use
toFixed()at the right spot:http://jsfiddle.net/NyE2d/1/