+++ # ----------------------------------------------------------------------- # 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 Signature ```typescript export declare function toFloatOrUndefined(value: string): number | undefined; ``` Import ```typescript import { toFloatOrUndefined } from '@grafana/data'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | value | string | | Returns: `number | undefined`