반응형
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 |
Tags
- Mac
- google apps script
- PANDAS
- Apache
- numpy
- Python
- matplotlib
- dataframe
- PostgreSQL
- Google Excel
- Excel
- list
- Google Spreadsheet
- math
- string
- 파이썬
- SQL
- Kotlin
- GIT
- Redshift
- Java
- PySpark
- django
- hive
- gas
- c#
- Github
- array
- Tkinter
Archives
- Today
- Total
달나라 노트
C# : Math.Log, Math.Log10 (Log, Log10, LogE) 본문
728x90
반응형
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
728x90
반응형
'C# > C#' 카테고리의 다른 글
C# : Math.Exp (자연상수의 거듭제곱) (0) | 2022.04.18 |
---|---|
C# : Math.Truncate (소수점 삭제) (0) | 2022.04.18 |
C# : Math.E (자연 상수) (0) | 2022.04.18 |
C# : Math.Sign (부호, 양수/음수) (0) | 2022.04.18 |
C# : Sin, Cos, Tan (삼각함수, Sin, Cos, Tan) (0) | 2022.04.18 |
Comments