Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Log FunctionThis standard VB function returns the natural logarithm of a number. SyntaxReturnsThe natural logarithm of number. UsageThe return value is single-precision for an integer, currency, or single-precision numeric expression; double precision for a long, variant, or double-precision numeric expression. ExampleThis example uses the Log function to determine which number is larger: 999^1000 (999 to the 1000th power) or 1000^999 (1000 to the 999th power). Note that you cannot use the exponent (^) operator for numbers this large. Sub Button_Click See AlsoExp Function |
Siebel VB Language Reference |