Number.Ln is a Power Query M function that calculates the natural logarithm of a given number. The function returns the natural logarithm value or null if the input number is null.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Number.Ln( number as nullable number ) as nullable number
Description
Returns the natural logarithm of a number, number. If number is null Number.Ln returns null.
Examples
Get the natural logarithm of 15.
// Output: 2.70805020110221
Number.Ln( 15 )
Related functions
Other functions related to Number.Ln are:
- Number.Abs
- Number.Combinations
- Number.Exp
- Number.Factorial
- Number.IntegerDivide
- Number.Log
- Number.Log10
- Number.Mod
- Number.Permutations
- Number.Power
- Number.Sign
- Number.Sqrt
2023-2026 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy