type: fhirpath-functionfunction: toDecimalcategory: Conversionsection: 5.5.6.1source: 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
Type Mapping
Example
'123.45'.toDecimal() // returns 123.45