Java常用函数

Math类中

  • ceil() 方法
    • cell()方法可以对一个数进行向上取整
    • double ceil(double d)
    • double ceil(float f)
  • pow
    • a^b次方
    • Math.pow(double a,double b)

Scanner类中