Syntax
=LOG(number, [base])Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | A positive number |
base | Optional | The base of the logarithm (10 when left out) |
How to use LOG
LOG takes 1 required argument and 1 optional argument. Type =LOG( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=LOG(10)Result =LOG(8, 2)Result =LOG(86, 2.7182818)Result Related math functions
- INTRounds a number down to the nearest integer.
- ISO.CEILINGRounds a number up to the nearest multiple, whatever the sign of the number or significance.
- LCMReturns the least common multiple of whole numbers.
- LNReturns the natural logarithm of a number.
- LOG10Returns the base 10 logarithm of a number.
- MDETERMReturns the determinant of a square matrix.
- MINUSReturns the difference of two numbers, like the - operator.
- MINVERSEReturns the inverse of a square matrix.
- MMULTReturns the matrix product of two arrays.