java.lang
Class Math

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

public final class Math
extends Object

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


Field Summary
static double E
           
static double PI
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E

public static final double E

PI

public static final double PI
Method Detail

toRadians

public static double toRadians(double degrees)

toDegrees

public static double toDegrees(double rads)

ceil

public static double ceil(double a)

floor

public static double floor(double a)

abs

public static int abs(int a)
절대값을 구한다.
Parameters:
a - 정수형 매개변수.
Returns:
정수형인 a의 절대값.

abs

public static long abs(long a)
절대값을 구한다.
Parameters:
a - Long형 매개변수.
Returns:
Long인 a의 절대값.

abs

public static float abs(float f)

abs

public static double abs(double d)

min

public static float min(float a,
                        float b)

min

public static double min(double a,
                         double b)

min

public static int min(int a,
                      int b)
두 매개변수 중 작은 값을 구한다.
Parameters:
a - 정수형 변수.
b - 정수형 변수.
Returns:
a,b중 작은 값.

min

public static long min(long a,
                       long b)
두 매개변수 중 작은 값을 구한다.
Parameters:
a - Long형 변수.
b - Long형 변수.
Returns:
a,b중 작은 값.

max

public static int max(int a,
                      int b)
두 매개변수 중 큰 값을 구한다.
Parameters:
a - 정수형 변수.
b - 정수형 변수.
Returns:
a,b중 큰 값.

max

public static long max(long a,
                       long b)
두 매개변수 중 큰 값을 구한다.
Parameters:
a - Long형 변수.
b - Long형 변수.
Returns:
a,b중 큰 값.

max

public static float max(float a,
                        float b)

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