# format_decimal_composite

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/number_format/function-format_decimal_composite/

**function** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
fn format_decimal_composite(format: &str, info: &super::NumberFormatInfo, value: Option<super::Decimal>) -> Result<String, crate::data::converters::composite_format::FormatError>
```

Replaces the format items of a composite format string (`{0}`,
`{0,8}`, `{0:N2}`; `{{` and `}}` are braces) with the text of `value`,
the only argument. A missing value formats as empty text.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/number_format.rs#L151)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
