일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Mac
- Java
- PostgreSQL
- array
- Redshift
- matplotlib
- list
- GIT
- math
- gas
- Kotlin
- SQL
- django
- Excel
- c#
- Google Excel
- dataframe
- Github
- Apache
- Tkinter
- 파이썬
- Python
- PANDAS
- hive
- string
- numpy
- google apps script
- Google Spreadsheet
- PySpark
- Today
- Total
목록int (3)
달나라 노트
Python 내장 함수인 int() method는 어떠한 값을 정수로 변환해주는 역할을 합니다. val_result = '12345' val_result_int = int(val_result) print(val_result_int) print(type(val_result_int)) -- Result 12345 사용법은 위와 같습니다. 그냥 어떤 값을 int() method에 전달하면 됩니다. 그러면 그 값을 정수로 바꿔줍니다. 근데 좀 더 정확하게 말하면 여기에는 숨겨진 내용이 왔습니다. val_result = '12345' val_result_int = int(val_result, base=10) print(val_result_int) print(type(val_result_int)) -- Result..
Original source = www.w3schools.com Java의 Datatype은 다음과 같습니다. Data Type Size Description byte 1 byte Stores whole numbers from -128 to 127 short 2 bytes Stores whole numbers from -32,768 to 32,767 int 4 bytes Stores whole numbers from -2,147,483,648 to 2,147,483,647 long 8 bytes Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 float 4 bytes Stores fractional numb..
Original source = www.w3schools.com Java에는 String, int, float, double 등의 여러 자료형이 있습니다. 이번에는 이러한 자료형들의 변환은 어떻게 할 수 있는지 알아보겠습니다. Java에선 Data type을 변경할 때 자동으로 인식해서 변경되는 경우가 있으며 직접 지정을 해줘야만 바뀌는 경우도 있습니다. 그 내용은 다음과 같습니다. Automatic casting : 작은 용량의 data type에서 큰 용량의 data type으로 변경할 때 byte -> short -> char -> int -> long -> float -> double Manual casting : 큰 용량의 data type에서 작은 용량의 data type으로 변경할 때 dou..