--- title: "log" description: "Returns the natural logarithm (base e) of a number." --- # log > Returns the natural logarithm (base e) of a number. **This function is used by Ignition's Expression language.** ## Description ## Syntax `log(number)` - Parameters - int/float **number** - The number to get the log of. - Results - float - The log of the number provided. ## Examples ```python title="Code Snippet" log(28) //returns 3.332 ```