일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- numpy
- Mac
- matplotlib
- Tkinter
- Python
- Redshift
- array
- Java
- PANDAS
- google apps script
- Google Spreadsheet
- dataframe
- PostgreSQL
- gas
- math
- Apache
- hive
- 파이썬
- GIT
- django
- Kotlin
- Excel
- list
- Google Excel
- SQL
- PySpark
- Github
- string
- c#
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
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
Math.Log(a, b) -> 밑이 b이고, 위가 a인 log값을 return합니다. Math.Log(a) -> 밑이 자연상수(e)이고, 위가 a인 log값을 return합니다. Math.Log10(a) -> 밑이 10이고, 위가 a인 log값을 return합니다. using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Log(100, 10)); Console.WriteLine(Math.Log(Math.E)); Console.WriteLine(Math.Log10(100)); } } -- Result 2 1 2
Math.E 는 자연상수 e 값을 return합니다. using System; class MyProgram { public static void Main() { double e = Math.E; Console.WriteLine(e); } } -- Result 2.71828182845905
Math.Sign(x) method는 어떤 숫자 x를 인자로 받으며 이 x값의 부호를 return합니다. x > 0 -> 1 return x = 0 -> 0 return x -1 return using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Sign(125.813)); Console.WriteLine(Math.Sign(0)); Console.WriteLine(Math.Sign(-125.813)); } } -- Result 1 0 -1