--- type: "fhirpath-function" title: "FHIRPath Function: exp" function: "exp" category: "Math" section: "5.8.3" source: "fhirpath/functions.json" --- # FHIRPath Function: exp {:.stu} Returns _e_ raised to the power of the input. {:.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} ``` fhirpath 0.exp() // 1.0 (-0.0).exp() // 1.0 ``` {:.stu} ## Summary - **Category**: Math - **Section**: `5.8.3` - **Return Type**: `Decimal` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description Returns _e_ raised to the power of the input. ## Arguments - none ## Type Mapping - `Integer-Decimal` - `Long-Decimal` - `Decimal-Decimal` ## Example ```fhirpath 0.exp() // 1.0 (-0.0).exp() // 1.0 ```