+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toFloatOrUndefined"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## toFloatOrUndefined() function

### toFloatOrUndefined() function

<b>Signature</b>

```typescript
export declare function toFloatOrUndefined(value: string): number | undefined;
```
<b>Import</b>

```typescript
import { toFloatOrUndefined } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | <code>string</code> |  |

<b>Returns:</b>

`number | undefined`

