Skip to content

Commit

Permalink
Fix floating point rounding in pexp()
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Jul 25, 2017
1 parent 07392fd commit 6e3a96d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1563,7 +1563,7 @@ public Construct exec(Target t, Environment env, Construct... args) throws Confi
m = Static.GetPlayer(args[0].val(), t);
}
Static.AssertPlayerNonNull(m, t);
return new CInt((int) (m.getExp() * 100), t);
return new CInt(java.lang.Math.round(m.getExp() * 100), t);
}
}

Expand Down

0 comments on commit 6e3a96d

Please sign in to comment.