|
JavaTM Platform Standard Ed. 6 |
|||||||||
전 다음 | 프레임 있어 프레임 없음 |
RoundingMode 를 사용하고 있는 패키지 | |
---|---|
java.math | 임의 정밀도의 정수 연산 (BigInteger) 및 임의 정밀도의 소수 연산 (BigDecimal)을 실시하는 클래스를 제공합니다. |
java.text | 텍스트, 일자, 수치, 및 메세지를 자연 언어에 의존하지 않는 방법으로 처리하기 위한 클래스와 인터페이스를 제공합니다. |
java.math 에서의 RoundingMode 의 사용 |
---|
RoundingMode 를 돌려주는 java.math 의 메소드 | |
---|---|
RoundingMode |
MathContext. getRoundingMode ()
roundingMode 설정을 돌려줍니다. |
static RoundingMode |
RoundingMode. valueOf (int rm)
BigDecimal 의 유산 정수 둥근 모드 정수에 대응하는 RoundingMode 객체를 돌려줍니다. |
static RoundingMode |
RoundingMode. valueOf (String name)
지정한 이름을 가지는 이 형태의 열거형 정수를 돌려줍니다. |
static RoundingMode [] |
RoundingMode. values ()
이 열거형의 정수를 포함한 배열이 선언되고 있는 순서로 돌려줍니다. |
RoundingMode 형의 파라미터를 가지는 java.math 의 메소드 | |
---|---|
BigDecimal |
BigDecimal. divide (BigDecimal divisor,
int scale,
RoundingMode roundingMode)
값이 (this / divisor) 로, 스케일이 지정된 것인 BigDecimal 를 돌려줍니다. |
BigDecimal |
BigDecimal. divide (BigDecimal divisor,
RoundingMode roundingMode)
값이 (this / divisor) 로 스케일이 this.scale() 인 BigDecimal 를 돌려줍니다. |
BigDecimal |
BigDecimal. setScale (int newScale,
RoundingMode roundingMode)
스케일이 지정된 값이며, 한편 스케일 없음의 값이, 이 BigDecimal 의 스케일 없음의 값과 총체치를 유지할 수 있는 적당한 10 의 누승의 적 또는 상에 의해 결정되는 BigDecimal 를 돌려줍니다. |
RoundingMode 형의 파라미터를 가지는 java.math 의 생성자 | |
---|---|
MathContext (int setPrecision,
RoundingMode setRoundingMode)
지정의 정밀도와 둥근 모드의 새로운 MathContext 를 구축합니다. |
java.text 에서의 RoundingMode 의 사용 |
---|
RoundingMode 를 돌려주는 java.text 의 메소드 | |
---|---|
RoundingMode |
NumberFormat. getRoundingMode ()
이 NumberFormat 으로 사용되는 RoundingMode 를 가져옵니다. |
RoundingMode |
DecimalFormat. getRoundingMode ()
이 DecimalFormat 로 사용되는 RoundingMode 를 가져옵니다. |
RoundingMode 형의 파라미터를 가지는 java.text 의 메소드 | |
---|---|
void |
NumberFormat. setRoundingMode (RoundingMode roundingMode)
이 NumberFormat 으로 사용되는 RoundingMode 를 설정합니다. |
void |
DecimalFormat. setRoundingMode (RoundingMode roundingMode)
이 DecimalFormat 로 사용되는 RoundingMode 를 설정합니다. |
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전 다음 | 프레임 있어 프레임 없음 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.