> ## Documentation Index
> Fetch the complete documentation index at: https://systematica.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Formatting

> systematica.utils.formatting

## `custom_format`

```python theme={null}
custom_format(
    x: Any,
) ‑> str
```

Custom formatting function for various data types.
This function formats datetime, timedelta, and floating-point numbers
into human-readable strings.

**Parameters**:

| Name | Type     | Default | Description                                                                        |
| ---- | -------- | ------- | ---------------------------------------------------------------------------------- |
| `x`  | `tp.Any` | `--`    | The input value to format. Can be a datetime, timedelta, float, or any other type. |

**Returns**:

| Type  | Description                                           |
| ----- | ----------------------------------------------------- |
| `str` | A formatted string representation of the input value. |
