---
title: "Class Math"
---

`package java.lang`

```text
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)`

## 필드 상세

### E

```java
public static final double E
```

### PI

```java
public static final double PI
```

### toRadians

```java
public static double toRadians(double degrees)
```

### toDegrees

```java
public static double toDegrees(double rads)
```

### ceil

```java
public static double ceil(double a)
```

### floor

```java
public static double floor(double a)
```

### abs

```java
public static int abs(int a)
```

**Parameters:**
- `a` - 정수형 매개변수.

**Returns:**
- 정수형인 a의 절대값.

### abs

```java
public static long abs(long a)
```

**Parameters:**
- `a` - Long형 매개변수.

**Returns:**
- Long인 a의 절대값.

### abs

```java
public static float abs(float f)
```

### abs

```java
public static double abs(double d)
```

### min

```java
public static float min(float a,
                        float b)
```

### min

```java
public static double min(double a,
                         double b)
```

### min

```java
public static int min(int a,
                      int b)
```

**Parameters:**
- `b` - 정수형 변수.

**Returns:**
- a,b중 작은 값.

### min

```java
public static long min(long a,
                       long b)
```

**Parameters:**
- `b` - Long형 변수.

**Returns:**
- a,b중 작은 값.

### max

```java
public static int max(int a,
                      int b)
```

**Parameters:**
- `b` - 정수형 변수.

**Returns:**
- a,b중 큰 값.

### max

```java
public static long max(long a,
                       long b)
```

**Parameters:**
- `b` - Long형 변수.

**Returns:**
- a,b중 큰 값.

### max

```java
public static float max(float a,
                        float b)
```

### max

```java
public static double max(double a,
                         double b)
```## 메서드 상세

### toRadians

```java
public static double toRadians(double degrees)
```

### toDegrees

```java
public static double toDegrees(double rads)
```

### ceil

```java
public static double ceil(double a)
```

### floor

```java
public static double floor(double a)
```

### abs

```java
public static int abs(int a)
```

**Parameters:**
- `a` - 정수형 매개변수.

**Returns:**
- 정수형인 a의 절대값.

### abs

```java
public static long abs(long a)
```

**Parameters:**
- `a` - Long형 매개변수.

**Returns:**
- Long인 a의 절대값.

### abs

```java
public static float abs(float f)
```

### abs

```java
public static double abs(double d)
```

### min

```java
public static float min(float a,
                        float b)
```

### min

```java
public static double min(double a,
                         double b)
```

### min

```java
public static int min(int a,
                      int b)
```

**Parameters:**
- `b` - 정수형 변수.

**Returns:**
- a,b중 작은 값.

### min

```java
public static long min(long a,
                       long b)
```

**Parameters:**
- `b` - Long형 변수.

**Returns:**
- a,b중 작은 값.

### max

```java
public static int max(int a,
                      int b)
```

**Parameters:**
- `b` - 정수형 변수.

**Returns:**
- a,b중 큰 값.

### max

```java
public static long max(long a,
                       long b)
```

**Parameters:**
- `b` - Long형 변수.

**Returns:**
- a,b중 큰 값.

### max

```java
public static float max(float a,
                        float b)
```

### max

```java
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](mailto:contact@aromasoft.com)*
