Class Math
package java.lang
java.lang.Object | +--java.lang.Mathextends Object:
기본적인 수칙연산을 포함한 클래스.
필드 요약
섹션 제목: “필드 요약”static double Estatic double PI
메서드 요약
섹션 제목: “메서드 요약”static double abs (double d)static float abs (float f)static int abs (int a)— 절대값을 구한다.static long abs (long a)— 절대값을 구한다.static double ceil (double a)static double floor (double a)static double max (double a, double b)static float max (float a, float b)static int max (int a, int b)— 두 매개변수 중 큰 값을 구한다.static long max (long a, long b)— 두 매개변수 중 큰 값을 구한다.static double min (double a, double b)static float min (float a, float b)static int min (int a, int b)— 두 매개변수 중 작은 값을 구한다.static long min (long a, long b)— 두 매개변수 중 작은 값을 구한다.static double toDegrees (double rads)static double toRadians (double degrees)
필드 상세
섹션 제목: “필드 상세”public static final double Epublic static final double PItoRadians
섹션 제목: “toRadians”public static double toRadians(double degrees)toDegrees
섹션 제목: “toDegrees”public static double toDegrees(double rads)ceil
섹션 제목: “ceil”public static double ceil(double a)floor
섹션 제목: “floor”public static double floor(double a)abs
섹션 제목: “abs”public static int abs(int a)Parameters:
a- 정수형 매개변수.
Returns:
- 정수형인 a의 절대값.
abs
섹션 제목: “abs”public static long abs(long a)Parameters:
a- Long형 매개변수.
Returns:
- Long인 a의 절대값.
abs
섹션 제목: “abs”public static float abs(float f)abs
섹션 제목: “abs”public static double abs(double d)min
섹션 제목: “min”public static float min(float a, float b)min
섹션 제목: “min”public static double min(double a, double b)min
섹션 제목: “min”public static int min(int a, int b)Parameters:
b- 정수형 변수.
Returns:
- a,b중 작은 값.
min
섹션 제목: “min”public static long min(long a, long b)Parameters:
b- Long형 변수.
Returns:
- a,b중 작은 값.
max
섹션 제목: “max”public static int max(int a, int b)Parameters:
b- 정수형 변수.
Returns:
- a,b중 큰 값.
max
섹션 제목: “max”public static long max(long a, long b)Parameters:
b- Long형 변수.
Returns:
- a,b중 큰 값.
max
섹션 제목: “max”public static float max(float a, float b)max
섹션 제목: “max”public static double max(double a, double b)```## 메서드 상세
### toRadians
```javapublic static double toRadians(double degrees)toDegrees
섹션 제목: “toDegrees”public static double toDegrees(double rads)ceil
섹션 제목: “ceil”public static double ceil(double a)floor
섹션 제목: “floor”public static double floor(double a)abs
섹션 제목: “abs”public static int abs(int a)Parameters:
a- 정수형 매개변수.
Returns:
- 정수형인 a의 절대값.
abs
섹션 제목: “abs”public static long abs(long a)Parameters:
a- Long형 매개변수.
Returns:
- Long인 a의 절대값.
abs
섹션 제목: “abs”public static float abs(float f)abs
섹션 제목: “abs”public static double abs(double d)min
섹션 제목: “min”public static float min(float a, float b)min
섹션 제목: “min”public static double min(double a, double b)min
섹션 제목: “min”public static int min(int a, int b)Parameters:
b- 정수형 변수.
Returns:
- a,b중 작은 값.
min
섹션 제목: “min”public static long min(long a, long b)Parameters:
b- Long형 변수.
Returns:
- a,b중 작은 값.
max
섹션 제목: “max”public static int max(int a, int b)Parameters:
b- 정수형 변수.
Returns:
- a,b중 큰 값.
max
섹션 제목: “max”public static long max(long a, long b)Parameters:
b- Long형 변수.
Returns:
- a,b중 큰 값.
max
섹션 제목: “max”public static float max(float a, float b)max
섹션 제목: “max”public static double max(double a, double b)AromaSoft Corp. Proprietary and Confidential
(C)opyright 2003 AromaSoft Corp. All right reserved. Contact : contact@aromasoft.com