type: fhirpath-functionfunction: lncategory: Mathsection: 5.8.5source: fhirpath/functions.json
FHIRPath Function: ln
{:.stu}
Returns the natural logarithm of the input (i.e. the logarithm base e). {:.stu}
Accepts Decimal input types. Integer and Long types are also accepted via implicit conversion to Decimal. {:.stu}
If the input collection is empty, the result is empty. {:.stu}
If the input collection contains multiple items, the evaluation of the expression will end and signal an error to the calling environment. {:.stu}
1.ln() // 0.0
1.0.ln() // 0.0
Summary
- Category: Math
- Section:
5.8.5 - Return Type:
Decimal - Empty Input Result:
empty - Errors on Multiple Input:
true
Description
Returns the natural logarithm of the input (i.e. the logarithm base e).
Arguments
Type Mapping
Example
1.ln() // 0.0
1.0.ln() // 0.0