LOG10 (SQL Server Compact Edition)

Returns the base-10 logarithm of the given float expression.

Syntax

LOG10 ( float_expression ) 

Arguments

  • float_expression
    An expression of the type float, or of types that can be implicitly converted to float.

Return Value

float

Example

The following example returns the base-10 logarithm of various float values.

CREATE TABLE "Base-10 Logarithms" ("LOG10 2" float, "LOG10 20" float, "LOG10 200" float)
INSERT INTO Logarithm VALUES (LOG10(2), LOG10(20), LOG10(200))
SELECT * FROM "Base-10 Logarithms"