mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
decrease rounding precision
This commit is contained in:
parent
0ba35cb57d
commit
627214512b
1 changed files with 0 additions and 2 deletions
|
|
@ -114,8 +114,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
const absPercent = Math.abs(percent);
|
||||
if (absPercent > 100) {
|
||||
return Math.round(percent / 50) * 50;
|
||||
} else if (absPercent > 10) {
|
||||
return Math.round(percent / 5) * 5;
|
||||
} else if (absPercent >= 1) {
|
||||
return parseFloat(percent.toPrecision(1));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue