일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- list
- Java
- Python
- Apache
- Excel
- array
- GIT
- PostgreSQL
- PySpark
- matplotlib
- gas
- dataframe
- numpy
- 파이썬
- c#
- google apps script
- Google Spreadsheet
- hive
- Google Excel
- Mac
- PANDAS
- math
- Kotlin
- Tkinter
- string
- SQL
- django
- Redshift
- Github
- Today
- Total
목록float (2)
달나라 노트
숫자가 1000, 10000단위 이상으로 커지게 되면 천단위 콤마를 찍어주는게 가독성이 좋습니다. 이런저런 로직을 넣어서 직접 python 함수를 만들 수도 있겠지만, 굳이 이런 번거로운 일을 할 필요 없이 Python에서는 format이라는 함수를 제공합니다. Syntax format(number, ',d/f') number --> format을 적용하여 천단위 콤마를 찍을 숫자입니다. ',d/f' --> format을 적용할때 받은 number의 자료형이 무엇인지 입력하고 천단위 콤마를 찍는다는 의미입니다. d는 정수이고, f는 실수입니다. 예시를 보시죠. print(format(12345678910, ',d')) # 1. 12,345,678,910 print(format(12345678910, ',..
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..