fixing floating point numbers issue
This commit is contained in:
parent
a4fb868434
commit
f3356734f5
|
@ -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;
|
||||
|
|
Reference in New Issue