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
- know
- happen to
- for ing
- 제5인격
- java
- counldn't have
- 명절 표현
- I'm glad
- gameQA
- UE4
- C++
- 형변환
- keep -ing
- it's a good thing
- if조건절
- continue to
- 코로나19
- Realtime Rendering
- by until
- by any chance
- might have p.p
- metascore
- 게임QA
- 변수
- html
- relif
- end up ing
- sort함수
- 명세기반테스트
- ISTQB
Archives
- Today
- Total
Records rather than Memories
[java] 정수와 실수 본문
정수와 실수가 무엇일까?
사실 수학을 배우며 자연스럽게 습득하게 되는 개념이다
- 정수 -3 -2 -1 0 1 2 3 관념화된 숫자
- 실수 0과1사이의 수 많은 수들
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package org.javatutorials.variable;
public class DoubleDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
double a; //변수 a에 담길 수 있는 data type은 실수
a = 1.1;
System.out.println(a+1.1);
}
}
|
cs |
a라는 변수를 double이라는 실수형 변수에 담았기 때문에 1.1 + 1.1의 결과가 출력될 수 있다.
'Software > JAVA' 카테고리의 다른 글
[java] Data type (0) | 2019.10.01 |
---|---|
[java] 문자열 (0) | 2019.10.01 |
Eclipse의 기능 (0) | 2019.09.30 |
[java] 변수 (Variable) (0) | 2019.09.29 |
JAVA의 실행 (0) | 2019.09.29 |
Comments