# write_double

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

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

```rust
fn write_double<W: Write>(w: &mut W, value: f64) -> fmt::Result
```

Writes `value` the way the reference runtime prints a double under the invariant
culture: the shortest round-trippable digits, plain notation for magnitudes in
`[1e-4, 1e15)`, scientific notation (`1E+15`, `1E-05`) otherwise, and
`NaN` / `Infinity` / `-Infinity` for the non-finite values.

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

## Availability

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