decimal number to percentage 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