fork download
  1. class TesteExp {
  2. public static void main(String[] args) {
  3. int level = 2;
  4. int exp = (int) Math.floor(1000 * Math.pow(level, 1.5));
  5. System.out.println(exp);
  6. double level2 = Math.pow(exp / 1000.0, 2 / 3.0);
  7. System.out.println(level2);
  8. System.out.println(Math.floor(level2));
  9. }
  10. }
Success #stdin #stdout 0.05s 4575232KB
stdin
Standard input is empty
stdout
2828
1.9997986463957098
1.0