Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Math FunctionsRSS Feeds

LOG Function

Posted By: Sarita Patel     Category: SQL Server     Views: 2732

This article explains LOG function of sql server with examples.

LOG is used to calculate natural logarithm for the specified numeric value.


Syntax of LOG Function :

LOG (float_expression)

float_expression is an expression of float data type.

Return type of LOG is float data type.



Examples of LOG Function :

Example 1 : Use of LOG function in select clause

SELECT LOG(200)

Output
5.29831736654804

Above example returns logarithm for numeric expression.
  
Share: 

 
 
 

Didn't find what you were looking for? Find more on LOG Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of LOG Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!