So I made this quick script that calculates some numbers, but the answer ends with many decimal numbers. How do I make it so it only shows 2 numbers after the "."?
Function test() {
var g1 = document.testino.v1.value * 10 / 5 + 38;
var g2 = document.testino.v2.value / 2046 * 9;
var g3 = g1 + g2;
document.testino.uitkomst.value= g3;
parseFloat_num.toFixed(2);
This is what i have now but it still doesn't work. Please don't hate I am just learning and I rather aks then search all over google or wherever.