--- type: "fhirpath-function" title: "FHIRPath Function: toDecimal" function: "toDecimal" category: "Conversion" section: "5.5.6.1" source: "fhirpath/functions.json" --- # FHIRPath Function: toDecimal _No canonical section match found in index.md._ ## Summary - **Category**: Conversion - **Section**: `5.5.6.1` - **Return Type**: `Decimal` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description If the input collection contains a single item, this function will return a single decimal if the item is an Integer or Decimal, a String convertible to a Decimal, or a Boolean. ## Arguments - none ## Type Mapping - `Integer-Decimal` - `Decimal-Decimal` - `String-Decimal` - `Boolean-Decimal` ## Example ```fhirpath '123.45'.toDecimal() // returns 123.45 ```