# format_decimal

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

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

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

Formats a decimal with a standard or custom numeric format string. An
empty format string is the general format.

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

## Availability

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