반응형
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
- SQL
- PySpark
- c#
- Mac
- Tkinter
- matplotlib
- numpy
- google apps script
- list
- Kotlin
- PostgreSQL
- Java
- hive
- django
- array
- gas
- Apache
- string
- Github
- Redshift
- PANDAS
- Google Excel
- Python
- dataframe
- math
- 파이썬
- GIT
- Excel
- Google Spreadsheet
Archives
- Today
- Total
목록Math.min (1)
달나라 노트
C# : Math.Max, Math.Min (최대값, 최소값)
Math.Max(a, b) method는 a와 b 두개의 숫자를 받고 둘 중 더 큰 수를 return합니다. Math.Min(a, b) method는 a와 b 두개의 숫자를 받고 둘 중 더 작은 수를 return합니다. using System; class MyProgram { public static void Main() { var max_value = Math.Max(10.3, 12); Console.WriteLine(max_value); var min_value = Math.Min(10.3, 12); Console.WriteLine(min_value); } } -- Result 12 10.3 예시는 위와 같습니다. 인자로서는 정수와 실수 모두 받을 수 있습니다.
C#/C#
2022. 4. 18. 19:25