> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/conversion/tofloat.md).

# toFloat

## Description

Converts a passed value to a float type.

## Input / Parameter

| Name  | Description                      | Input Type | Default | Options | Required |
| ----- | -------------------------------- | ---------- | ------- | ------- | -------- |
| value | The value to convert to a float. | Any        | -       | -       | Yes      |

## Output

| Description                          | Output Type |
| ------------------------------------ | ----------- |
| Returns the passed value as a float. | Number      |

## Callback

N/A

## Video

Coming Soon.

## Example

User want to convert a value to float type.

### Step

1. Call the function.\
   value : 12.2222

![](/files/iRar9f1lcHamoYjK3HQa)

### Result

12.2222(toFloat function parses a string and returns a floating point number.)

## Links
