반응형
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
- gas
- math
- string
- django
- Github
- Excel
- Tkinter
- Google Spreadsheet
- c#
- array
- Google Excel
- GIT
- numpy
- hive
- SQL
- Java
- Apache
- matplotlib
- Python
- PANDAS
- PostgreSQL
- 파이썬
- list
- Kotlin
- Redshift
- PySpark
- dataframe
- google apps script
- Mac
Archives
- Today
- Total
목록toPrecision (1)
달나라 노트
Google Apps Script : toPrecision (n자리의 숫자 string으로 변환)
toPrecision method는 어떤 숫자를 받아서 이 숫자를 n자리만 나타내도록 잘라서 string으로 변환해줍니다. Syntax Number.toPrecision(n) toPrecision method는 위처럼 어떠한 숫자에 적용할 수 있습니다. - n toPrecision method는 어떠한 숫자를 parameter로 받습니다. 이 숫자는 숫자를 몇 자리 까지 나타낼지를 의미합니다. function myFunction(){ var num = 7777.7777777777; var num_toprecisioned = num.toPrecision(6); Logger.log(num_toprecisioned); Logger.log(typeof(num_toprecisioned)); } -- Result ..
Google Apps Script
2022. 11. 29. 00:46