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