# Cast to float transform function

## Introduction

The **cast to float** transform function is used to change the data type associated with a source field from `string` to `float`.&#x20;

{% hint style="info" %}
A **float** is a type of number which uses a floating point to represent a decimal or fractional value. They are typically used for very large or very small values where there are a lot of numbers after the point - for example: 5.3333 or 0.0001.
{% endhint %}

## Adding a cast to float transform

**Step 1**\
In your process flow, access settings for your map shape:

<div align="left"><figure><img src="/files/w5Pcc1RmKaEZBtmmAQzE" alt="" width="275"><figcaption></figcaption></figure></div>

**Step 2**\
Select the **add transform** button for the required mapping rule - for example:

<div align="left"><figure><img src="/files/OiM6kATKl8KOTjCu3YLW" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 3**\
Click the **add transform** button:

<div align="left"><figure><img src="/files/WK4c9L3KxE8RNOrxtiQ0" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 4**\
Click in the **name** field to access a list of all available transform functions, then select **cast to float** from the **string** category:

<div align="left"><figure><img src="/files/Qau7gziLrk7tL82FbeDF" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 5**\
Click the **add field** button:

<div align="left"><figure><img src="/files/EVf35e1yPU3TupevxmUJ" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 6**\
Click in **source fields** and select the source field to be used for this transform:

<div align="left"><figure><img src="/files/7Fm94pwpAIwFLyEKxeb1" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 7**\
Accept your changes (twice).

**Step 8**\
Save the transform. You'll notice that the transform icon is updated to indicate that a transform function is present for the mapping row - for example:

<div align="left"><figure><img src="/files/2AHqLMF3hUbr0lKB3tDi" alt="" width="375"><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/map-shape/working-with-field-transformations/available-transform-functions/string-transform-functions/cast-to-float-transform-function.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
