当前位置:网站首页>Common static methods of math class

Common static methods of math class

2022-07-05 23:18:00 qq_ forty-five million three hundred and fifteen thousand three

Math Class commonly used static methods

java.util.Math Class is a tool class related to mathematics , It provides a lot of static methods ,, Complete math related operations .

public static double abs(double num)   Get absolute value , There are many kinds of overloads 
public static double ceil(double num)  Rounding up 
public static double floor(double num)  Rounding down 
public static long round(double num)  rounding 
Math.PI    Approximate PI constant (double type )
原网站

版权声明
本文为[qq_ forty-five million three hundred and fifteen thousand three]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140332213535.html