Use rational numbers/more decimal places in presets

Previous settings introduced rounding error in transfer values leading to incorrect results in some circumstances
This commit is contained in:
RunasSudo 2021-07-22 20:30:07 +10:00
parent 3ea1eef7c5
commit 12635decec
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A
1 changed files with 3 additions and 5 deletions

View File

@ -471,8 +471,7 @@ function changePreset() {
document.getElementById('chkBulkElection').checked = true; document.getElementById('chkBulkElection').checked = true;
document.getElementById('chkBulkExclusion').checked = true; document.getElementById('chkBulkExclusion').checked = true;
document.getElementById('chkDeferSurpluses').checked = false; document.getElementById('chkDeferSurpluses').checked = false;
document.getElementById('selNumbers').value = 'fixed'; document.getElementById('selNumbers').value = 'rational';
document.getElementById('txtDP').value = '5';
document.getElementById('txtPPDP').value = '0'; document.getElementById('txtPPDP').value = '0';
document.getElementById('chkNormaliseBallots').checked = false; document.getElementById('chkNormaliseBallots').checked = false;
document.getElementById('chkRoundQuota').checked = true; document.getElementById('chkRoundQuota').checked = true;
@ -494,8 +493,7 @@ function changePreset() {
document.getElementById('chkBulkElection').checked = true; document.getElementById('chkBulkElection').checked = true;
document.getElementById('chkBulkExclusion').checked = false; document.getElementById('chkBulkExclusion').checked = false;
document.getElementById('chkDeferSurpluses').checked = false; document.getElementById('chkDeferSurpluses').checked = false;
document.getElementById('selNumbers').value = 'fixed'; document.getElementById('selNumbers').value = 'rational';
document.getElementById('txtDP').value = '5';
document.getElementById('txtPPDP').value = '0'; document.getElementById('txtPPDP').value = '0';
document.getElementById('chkNormaliseBallots').checked = false; document.getElementById('chkNormaliseBallots').checked = false;
document.getElementById('chkRoundQuota').checked = true; document.getElementById('chkRoundQuota').checked = true;
@ -540,7 +538,7 @@ function changePreset() {
document.getElementById('chkBulkExclusion').checked = false; document.getElementById('chkBulkExclusion').checked = false;
document.getElementById('chkDeferSurpluses').checked = true; document.getElementById('chkDeferSurpluses').checked = true;
document.getElementById('selNumbers').value = 'fixed'; document.getElementById('selNumbers').value = 'fixed';
document.getElementById('txtDP').value = '5'; document.getElementById('txtDP').value = '6';
document.getElementById('txtPPDP').value = '3'; document.getElementById('txtPPDP').value = '3';
document.getElementById('chkNormaliseBallots').checked = false; document.getElementById('chkNormaliseBallots').checked = false;
document.getElementById('chkRoundQuota').checked = true; document.getElementById('chkRoundQuota').checked = true;