JavaScript Cuplikan Dua Tempat Desimal Sebagai String
let money = 1.6;
money.toFixed(2); // 1.60
McBurd
let money = 1.6;
money.toFixed(2); // 1.60
function interest(P, R, T){
var a = (P * R * T)/100
return a.toFixed(6);
}
console.log(interest(1500, 1.4, 3));
// it will give answer as 63.000000