콘텐츠로 이동

Class Math

package java.lang

java.lang.Object
|
+--java.lang.Math

extends Object:

기본적인 수칙연산을 포함한 클래스.

  • static double E
  • static 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 E
public static final double PI
public static double toRadians(double degrees)
public static double toDegrees(double rads)
public static double ceil(double a)
public static double floor(double a)
public static int abs(int a)

Parameters:

  • a - 정수형 매개변수.

Returns:

  • 정수형인 a의 절대값.
public static long abs(long a)

Parameters:

  • a - Long형 매개변수.

Returns:

  • Long인 a의 절대값.
public static float abs(float f)
public static double abs(double d)
public static float min(float a,
float b)
public static double min(double a,
double b)
public static int min(int a,
int b)

Parameters:

  • b - 정수형 변수.

Returns:

  • a,b중 작은 값.
public static long min(long a,
long b)

Parameters:

  • b - Long형 변수.

Returns:

  • a,b중 작은 값.
public static int max(int a,
int b)

Parameters:

  • b - 정수형 변수.

Returns:

  • a,b중 큰 값.
public static long max(long a,
long b)

Parameters:

  • b - Long형 변수.

Returns:

  • a,b중 큰 값.
public static float max(float a,
float b)
public static double max(double a,
double b)
```## 메서드 상세
### toRadians
```java
public static double toRadians(double degrees)
public static double toDegrees(double rads)
public static double ceil(double a)
public static double floor(double a)
public static int abs(int a)

Parameters:

  • a - 정수형 매개변수.

Returns:

  • 정수형인 a의 절대값.
public static long abs(long a)

Parameters:

  • a - Long형 매개변수.

Returns:

  • Long인 a의 절대값.
public static float abs(float f)
public static double abs(double d)
public static float min(float a,
float b)
public static double min(double a,
double b)
public static int min(int a,
int b)

Parameters:

  • b - 정수형 변수.

Returns:

  • a,b중 작은 값.
public static long min(long a,
long b)

Parameters:

  • b - Long형 변수.

Returns:

  • a,b중 작은 값.
public static int max(int a,
int b)

Parameters:

  • b - 정수형 변수.

Returns:

  • a,b중 큰 값.
public static long max(long a,
long b)

Parameters:

  • b - Long형 변수.

Returns:

  • a,b중 큰 값.
public static float max(float a,
float b)
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