📜  如何使用 javascript 代码示例将小数转换为百分比

📅  最后修改于: 2022-03-11 15:03:27.653000             🧑  作者: Mango

代码示例1
var obtained = 475;var total = 500;var percent = obtained*100/total;console.log(percent); // 95.0