Answer the question
In order to leave comments, you need to log in
Question about rounding?
Hello!
js newbie, please help.
There is a simple calculator.
function calcReturn(amount, days) {
return amount+days*(amount*0.058);
}
Answer the question
In order to leave comments, you need to log in
function calcReturn(amount, days) {
return Math.round(amount+days*(amount*0.058));
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question