Hi there met0555,
note that the "toFixed()" function rounds up the number so that 68. 129 would become 68. 13.
If that is unacceptable, then try this...
Code:var total_surch = ((A / 100) * P); var S=total_surch.toString().split('.'); total_surch=parseFloat(S[0]+'.'+S[1].substr(0,2));





Reply With Quote