반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- final
- C#
- 요청
- DROP
- spring
- ForignKey
- unity 오브젝트
- response
- WriteLine
- db
- http
- static을 왜사용할까?
- select
- 데이터베이스
- java
- 타입 변수 표기법
- unity 레이아웃
- 메소드 정의
- MariaDB
- static
- JDBC
- 평면좌표상에서 두점 거리 구하기
- 메소드 지정자
- unity 간단 설정
- c#상속
- request
- @ Builder
- Create
- 타입이 서로 다른 두 데이터 제네릭
- Database
Archives
- Today
- Total
목록Math 함수 (1)
이론을 싫어!

Math 는 수학 즉, Math 클래스는 수학계산 하는데 있어서 아주 유용하게 쓰이는 클래스이다. 바로 실습으로 넘어가자 (MathTest.java) 1 2 3 4 5 6 7 8 9 10 11 12 13 public class MathTest { public static void main(String[] args) { double d1=12.426; System.out.println(d1); System.out.println(Math.round(d1)); // 반올림 System.out.println(Math.ceil(d1)); // 올림 System.out.println(Math.floor(d1)); //버림 } } Colored by Color Scripter cs 결과값 1 2 3 4 12.426 ..
java
2023. 3. 31. 19:53