반응형
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
- hive
- Tkinter
- array
- Excel
- gas
- 파이썬
- list
- Kotlin
- Mac
- GIT
- PostgreSQL
- string
- google apps script
- Google Spreadsheet
- django
- math
- Github
- SQL
- Redshift
- Python
- Java
- c#
- PANDAS
- dataframe
- PySpark
- numpy
- Apache
- Google Excel
- matplotlib
Archives
- Today
- Total
목록Truncate (2)
달나라 노트
C# : Math.Truncate (소수점 삭제)
Math.Truncate(x)는 어떠한 실수 x를 인자로 받아 x의 소수점부분을 모두 삭제한 후 정수부분만 return합니다. using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Truncate(10.735)); Console.WriteLine(Math.Truncate(-10.735)); } } -- Result 10 -10
C#/C#
2022. 4. 18. 19:53