We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96412e commit 1ace019Copy full SHA for 1ace019
mee6/src/lib.rs
@@ -23,7 +23,8 @@ impl LevelInfo {
23
/// immediately, rather then when the getter is called.
24
#[must_use]
25
pub fn new(xp: u64) -> Self {
26
- // The operation used to calculate how many XP a given level is is (5 / 6) * level * (2 * level * level + 27 * level + 91), but it's optimized here.
+ // The operation used to calculate how many XP a given level is is (5 / 6) * level * (2 * level * level + 27 * level + 91),
27
+ // but it is not really possible to cleanly calculate the inverse of this
28
let level = {
29
let mut testxp = 0;
30
let mut level = 0;
0 commit comments