# Float to string

## Description

This operation transforms a float into a string using a Go format string. The provided format is passed to `fmt.Sprintf` to control how the number is rendered. Common examples include:

* `%.1f` → one decimal place (`1` becomes `"1.0"`)
* `%.2f` → two decimal places (`1` becomes `"1.00"`)
* `%e` → scientific notation (`1` becomes `"1.000000e+00"`)

See the [fmt package documentation](https://pkg.go.dev/fmt) for a complete list of formatting verbs and flags.

***

## Data types

These are the input/output expected data types for this operation:

### Input data

<img src="https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FX3CBvmMNB7LJRroEYqzN%2Fimage.png?alt=media&#x26;token=9a577f5f-80e8-4777-b374-e690cbe2b924" alt="" data-size="line"> - Input float values.

### Output data

<img src="https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FPLNlOZ1UbNvhUUyoVxIS%2Fimage.png?alt=media&#x26;token=59ae0cba-f771-4a77-8b0a-332ab1130507" alt="" data-size="line"> - Resulting string after being converted.

***

## Parameters

These are the parameters you need to configure to use this operation (mandatory parameters are marked with a <mark style="color:red;">**\***</mark>):

<details>

<summary>Format<mark style="color:red;"><strong>*</strong></mark></summary>

Specify the required verb/flag. See the [fmt package documentation](https://pkg.go.dev/fmt) for a complete list of formatting verbs and flags.

</details>

***

## Example

Suppose you want to convert a series of float values into strings following a specific format:

1. In your Pipeline, open the required [Action](https://docs.onum.com/the-workspace/pipelines/actions) configuration and select the input **Field**.
2. In the **Operation** field, choose **Float to String**.
3. Set **Format** to `%.1f`
4. Give your **Output field** a name and click **Save**. The values in your input field will be transformed into strings according to the given format. For example:

```
Input data - 5.218 

Radix (Base) - "%.1f"

Output data - "5.2"
```

{% hint style="info" %}
You can try out operations with specific values using the **Input** field above the operation. You can enter the value in the example above and check the result in the **Output** field.
{% endhint %}


---

# 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://docs.onum.com/the-workspace/pipelines/actions/transformation/field-transformation/field-transformation-operations/conversion/float-to-string.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.
