This topic has not yet been rated - Rate this topic

LOG (SSIS)

Returns the base-10 logarithm of a numeric expression.


LOG(numeric_expression)
numeric_expression

Is a valid nonzero or nonnegative numeric expression.

The numeric expression is cast to the DT_R8 data type before the logarithm is computed. For more information, see Integration Services Data Types.

If numeric_expression evaluates to zero or a negative value, the return result is null.

This example uses a numeric literal. The function returns the value 1.988291341907488.

LOG(97.34)

This example uses the column Length. If the column is 101.24, the function returns 2.005352136486217.

LOG(Length) 

This example uses the variable Length. The variable must have a numeric data type or the expression must include an explicit cast to a numeric SSIS data type. If Length is 234.567, the function returns 2.370266913465859.

LOG(@Length) 
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.