일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Github
- Google Spreadsheet
- Excel
- Apache
- c#
- math
- Mac
- Kotlin
- Redshift
- django
- Java
- Google Excel
- GIT
- list
- numpy
- hive
- PySpark
- array
- gas
- 파이썬
- SQL
- string
- matplotlib
- dataframe
- Python
- PANDAS
- Tkinter
- google apps script
- PostgreSQL
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
문자열의 연결은 + 연산자를 이용해서 할 수 있습니다. using System; class MyProgram { static void Main() { string test1 = "Apple"; string test2 = "Banana"; string new_string = test1 + test2; Console.WriteLine(new_string); } } -- Result AppleBanana using System; class MyProgram { static void Main() { string test1 = "Apple"; string test2 = "Banana"; string test3 = "Watermelon"; string new_string = string.Concat(test1, t..
C#에서 Math class는 다양한 수학적인 기능을 제공합니다. Math.Round는 소수점을 반올림한 값을 return해줍니다. Syntax Math.Round(number, digit) number를 digit에 명시된 소수점 자리까지 남긴 후 그 이하의 자릿수에서 반올림합니다. 예시는 다음과 같습니다. using System; class MyProgram { static void Main() { double value1 = 9.873; double result = Math.Round(value1, 1); Console.WriteLine(result); } } -- Result 9.9 Math.Ceiling은 소수점을 올림한 값을 return해줍니다. Syntax Math.Ceiling(number..
C#에서 Math class는 다양한 수학적인 기능을 제공합니다. Math.Abs는 절대값을 return해줍니다. using System; class MyProgram { static void Main() { double value1 = -9.8; double result = Math.Abs(value1); Console.WriteLine(result); } } -- Result 9.8
C#에서 Math class는 다양한 수학적인 기능을 제공합니다. Math.Sqrt는 제곱근을 return해줍니다. using System; class MyProgram { static void Main() { int value1 = 9; double result = Math.Sqrt(value1); Console.WriteLine(result); } } -- Result 3 주의할 점은 Sqrt의 결과값은 실수이므로 double 형태로 선언한 result 변수에 Sqrt의 결과를 할당합니다.