

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Log functions in C#
With C#, you can easily work with Logarithms. It has the following methods for Log as well as Log base 10.
Sr.No | Method & Description |
---|---|
1 | Log(Double) Returns the natural (base e) logarithm of a specified number. |
2 | LogDouble)(Double, Returns the logarithm of a specified number in a specified base. |
3 | Log10(Double) Returns the base 10 logarithm of a specified number. |
Let us see an example to work with Log functions in C# −
Example
using System; class Demo { static void Main() { double val1 = Math.Log(1); Console.WriteLine(val1); double val2 = Math.Log10(1000); Console.WriteLine(val2); } }
- Related Questions & Answers
- Log functions in Python
- Log functions in Java
- Log functions in Python Program
- log() function in PHP
- log() function in C++
- PHP log() Function
- How to remove scientific notation from a Matplotlib log-log plot?
- Find minimum number of Log value needed to calculate Log upto N in C++
- Design Log Storage System in Python
- Reorder Data in Log Files in Python
- Turn on the general log in MySQL?
- Program to compute Log n in C
- log() function for complex number in C++
- Explain the log based recovery in DBMS
- Regular functions vs Arrow functions in JavaScript?
Advertisements