fixing floating point numbers issue

This commit is contained in:
Serghei Mihai 2014-05-26 14:27:40 +02:00
parent a4fb868434
commit f3356734f5
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function call_tipi() {
document.getElementById(value + '_error').style.display='inline';
return false;
}
return (parseInt(euros) + parseInt(cents)/100) * 100;
return parseInt(euros) * 100 + parseInt(cents);
}
document.getElementById(id + '_error').style.display='inline';
return false;