bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server LOG10() Function

Concept visual

SQL Server LOG10() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Formula

Return the base - 10 logarithm of 2:
SELECT LOG10(2);

Definition and Usage

The LOG10() function returns the natural logarithm of a number to base 10.

Note:

Also look at the LOG() function.

Syntax

Log10(

number )

Parameter Values

Parameter

Description number

Required. A number greater than 0

Technical Details

Works in:

SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Formula

Return the base - 10 logarithm of 4.5:
SELECT LOG10(4.5);

Previous

❮ SQL Server Functions

Next

Previous

SQL Server LOG() Function

Next

SQL Server MAX() Function