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 | 31 |
Tags
- Linux
- function
- instruction
- mysql
- CSS
- XML
- control
- while
- MIPS
- Java
- php
- Algorithm
- python
- github
- react
- system
- web
- DB
- MacOS
- DoM
- javascript
- for
- architecture
- Class
- computer
- DS
- Pipelining
- data structure
- DATAPATH
- html
Archives
- Today
- Total
목록Truncates (1)
YYYEJI
[JAVA] Truncates 란?
↓↓↓ 형변환 (Type Casting) ↓↓↓ https://yyyeji.tistory.com/194 [JAVA] 형변환(Casting) 이란? JAVA에서 변수의 타입을 변경할 때 사용하는 방법으로 두 가지가 있습니다. ① Implicit casting ② Explicit casting Data type의 계층입니다. Byte → short → int → long → float → double 1b.. yyyeji.tistory.com Double type에서 integer로 형변환(type casting)을 할 때 ! truncate가 일어납니다. 예제를 살펴보겠습니다. 값이 아래와 같이 변형될 때 d의 값이 반올림 되는 것이 아니라 소숫점 아래 부분이 잘려 나갑니다. public static vo..
Java
2022. 10. 23. 14:21