주제>
Class Math round()
소수점을 정수로 변환한다.
함수 요약>
Modifier and Type | Method and Description |
static long | round(double a)Returns the closest long to the argument, with ties rounding to positive infinity. |
static int | round(float a)Returns the closest int to the argument, with ties rounding to positive infinity. |
출처>
오라클 자바 문서
https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html
728x90
'etc' 카테고리의 다른 글
[Python] int(), String을 int로 바꿀때 에러 - SyntaxError: invalid token (0) | 2020.10.29 |
---|---|
[Java] 현재 시간 한 줄로 표현하기 - SimpleDateFormat(), System.currentTimeMillis() (0) | 2020.09.10 |
[Sublime] Settings (0) | 2017.02.24 |
[Command Prompt] FC 파일 비교하기 (0) | 2017.02.24 |
[Cygwin] 기본 명령어 (0) | 2014.04.07 |