< Day Day Up > |
Lg()Category: Number Syntax: Lg ( number ) Parameters: number ”any expression that resolves to a positive numeric value. Description: Returns the base-2 logarithm of number . Negative values for number return an error. Examples: Lg (1) = 0 Lg (2) = 1 Lg (32) = 5 Comments: The base-2 logarithm (often called the binary logarithm ) of a number is the power of 2 that you would need to generate the number. Thus, if 2^x = y , then Lg(y) = x . The value returned by the Lg() function is increased by 1 every time that x is doubled . |
< Day Day Up > |