Reference > Functions reference > Number functions > Lg
 

Lg

Returns the base-2 logarithm of a number.

Format 

Lg(number)

Parameters 

number - any numeric expression or field containing a numeric expression

Data type returned 

number

Originated in 

FileMaker Pro 7.0

Description 

Number can be any positive value. Negative values return an error. For 0, the Lg function returns nothing because this value is out of the acceptable range.

Equation

Example 1 

Lg(1) = 0

Lg(2) = 1

Lg(32) = 5

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas