diff --git a/html/js/anc_script.js b/html/js/anc_script.js index 9e2b7a3fb..101470d1e 100644 --- a/html/js/anc_script.js +++ b/html/js/anc_script.js @@ -162,9 +162,8 @@ function verify_ca(div) } else { amount = Math.round(amount*100)/100; } - var diff = amount - total_amount; - - if (Math.round(diff, 2) != 0.0) + var diff = amount*100 - total_amount*100; + if (Math.round(diff/100) != 0.0) { g(table).style.backgroundColor = 'red'; amount_error++;