0
0
Fork 0

replace Math.round with .toFixed

This commit is contained in:
vv01f 2023-03-29 18:14:06 +02:00
parent 7fbab5327b
commit bf712137e2
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@
return parseFloat(f.value);
}
function roundCents(f){
return Math.round( f * 100 ) / 100;
return f.toFixed(2);
}
s.addEventListener('click', function(){