티스토리 뷰
The Double class wraps a value of the primitive type double in an object. An object of type Double contains a single field whose type is double. In addition, this class provides several methods for converting a double to a String and a String to a double, as well as other constants and methods useful when dealing with a double.
1. double 형 숫자를 String으로 변환
String strTemp = Double.toString(1.23456);
The String class represents character strings. All string literals in Java programs, such as "abc", are implemented as instances of this class. Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings. Because String objects are immutable they can be shared. For example:
2. String형 숫자를 double형으로 변환
double dTemp = Double.parseDouble("1.23456");
'🪄 프로그래밍' 카테고리의 다른 글
| [HTML] URL 주소 도메인 고정하기 (1) | 2018.07.02 |
|---|---|
| [MFC] 문자열 클립보드에 복사하기 (0) | 2018.06.29 |
| [Android] Toast 메세지 띄우기 (0) | 2018.06.28 |
| [Android] 배터리 정보 가져오기 (0) | 2018.06.28 |
| [MFC] CString 문자열 공백 지우기 (1) | 2018.06.28 |
- Total
- Today
- Yesterday
- 자기계발
- CES2026
- 리빙스타일
- 안드로이드
- 건강관리
- 음성
- 코딩
- 도파민
- 바이러스
- 인공지능뉴스
- 스마트홈
- 생활정보
- 업무효율
- 동영상
- 미래기술
- 프로그램
- 창의성
- 뇌과학
- 최적화
- 생산성향상
- 다운로드
- 프로그래밍
- 라이프스타일
- 공간스타일링
- 디지털디톡스
- IT트렌드
- 피디에스박스
- 집꾸미기
- 디지털전환
- 생활과학
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
