Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.84 KB

File metadata and controls

64 lines (45 loc) · 1.84 KB
title LOG (SSIS Expression)
description LOG (SSIS Expression)
author chugugrace
ms.author chugu
ms.date 03/01/2017
ms.service sql
ms.subservice integration-services
ms.topic reference
helpviewer_keywords
base-10 logarithms
LOG function

LOG (SSIS Expression)

[!INCLUDEsqlserver-ssis]

Returns the base-10 logarithm of a numeric expression.

Syntax

  
LOG(numeric_expression)  

Arguments

numeric_expression
Is a valid nonzero or nonnegative numeric expression.

Result Types

DT_R8

Remarks

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.

Expression Examples

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 [!INCLUDEssIS] data type. If Length is 234.567, the function returns 2.370266913465859.

LOG(@Length)   

See Also

EXP (SSIS Expression)
LN (SSIS Expression)
Functions (SSIS Expression)