convert decimal between 0 and 1 to percentage in javascript code example
Example: how to turn decimales into percents with javascript
var obtained = 475;var total = 500;var percent = obtained*100/total;console.log(percent); // 95.0
var obtained = 475;var total = 500;var percent = obtained*100/total;console.log(percent); // 95.0