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 (1becomes"1.0")%.2f→ two decimal places (1becomes"1.00")%e→ scientific notation (1becomes"1.000000e+00")
See the fmt package documentation for a complete list of formatting verbs and flags.
Data types
These are the input/output expected data types for this operation:
Input data
- Input float values.
Output data
- Resulting string after being converted.
Parameters
These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):
Example
Suppose you want to convert a series of float values into strings following a specific format:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose Float to String.
Set Format to
%.1fGive 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:
5.218 -> 5.2Last updated
Was this helpful?

