> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/datadesigner/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/datadesigner/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/datadesigner/_mcp/server.

# data\_designer.config.utils.numerical\_helpers

## Module Contents

### Functions

| Name                                                                                                     | Description                                                         |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [`is_int`](#data_designerconfigutilsnumerical_helpersis_int)                                             | None                                                                |
| [`is_float`](#data_designerconfigutilsnumerical_helpersis_float)                                         | None                                                                |
| [`prepare_number_for_reporting`](#data_designerconfigutilsnumerical_helpersprepare_number_for_reporting) | Ensure native python types and round to `precision` decimal digits. |

### API

```python
data_designer.config.utils.numerical_helpers.is_int(val: typing.Any) -> bool
```

```python
data_designer.config.utils.numerical_helpers.is_float(val: typing.Any) -> bool
```

```python
data_designer.config.utils.numerical_helpers.prepare_number_for_reporting(
    value: numbers.Number,
    target_type: type[numbers.Number],
    precision: int = REPORTING_PRECISION
) -> numbers.Number
```

Ensure native python types and round to `precision` decimal digits.