Export (0) Print
Expand All
Expand Minimize

LOG (SQL Server Compact)

Returns the natural logarithm of the given float expression.

LOG (float_expression )


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

The following example returns the logarithm of various float values.

CREATE TABLE Logarithms ([LOG 2] float, [LOG 20] float, [LOG 200] float);
INSERT INTO Logarithms VALUES (LOG(2), LOG(20), LOG(200));
SELECT * FROM Logarithms;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft