View raw Markdown
type: fhirpath-functionfunction: toDecimalcategory: Conversionsection: 5.5.6.1source: fhirpath/functions.json

FHIRPath Function: toDecimal

No canonical section match found in index.md.

Summary

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