SQL Flow Field Guide

LOG10

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

math

What changes

Input
numeric arguments
Output or change
numeric value
Return type
float

Syntax at a glance

LOG10 ( float_expression )

Work example

Calculate a base-ten logarithm for a positive measurement.

Test domain limits and the largest expected input. Keep degree and radian units explicit.

Check your work Reject zero and negative values before applying the logarithm.

Open Microsoft Learn for full syntax, permissions, and details for your version.