So i am unsure how to display decimal from these calculations – i also need to show interest code is:
function reCalc(borrowValue) {
$("#targetVal").html("£" + borrowValue);
var borrowBC = Math.floor(borrowValue * 1.25);
var borrowAC = Math.floor(borrowBC + 4.95);
$("#paybackAmount").html(borrowAC);
}
Which works like:
borrowValue = 100
BorrowBC = 125
BorrowAC = 129
2 things i want to ideally do:
1) Be decimal for the BorrowAC so its 129.95 not 129
2) i would also like to show the difference to work out interest applied so assuming borrowValue minus borrowAC i think?
Basically if i borrow 100 i pay 25 interest and 4.95 charges so i want to show the charges and interest applied to the 100 separately this will increase based on the amount they want though
Much appreciated in advance 🙂
Then edit like this
For your second,it will be