## formatQuantity() function  
Returns a human-readable string for a FHIR Quantity datatype, taking into account units and comparators

**Signature:**  
```typescript  
export declare function formatQuantity(quantity: Quantity | undefined, precision?: number): string;  
```

## Parameters  
| Parameter | Type | Description |  
| --- | --- | --- |  
| quantity | Quantity \| undefined | A FHIR Quantity element |  
| precision | number | _(Optional)_ Number of decimal places to display in the rendered quantity values |

**Returns:**  
string  
A human-readable string representation of the Quantity

- [formatQuantity() function](/content/docs/sdk/core.formatquantity#formatquantity-function/index.html)  
- [Parameters](/content/docs/sdk/core.formatquantity#parameters/index.html)
