- 论坛徽章:
- 0
|
import java.util.Math报找不到Math类
Java.util.Math
Supplies static constants and methods
public static final double E // = 2.71828
public static final double PI // = 3.1415926
– Trigonometric ops (double ‡ double):sin, cos, tan, asin, acos, atan, atan2
– Rounding ops: ceil, floor, rint, round
– Exponentials: exp, pow, log, sqrt
– Other: abs, max, min, random
Java.lang.Math
contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. |
|