PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

String To Number

Reads a number from text, so you can calculate with it.

String To Number turns text such as "42" or "3.14" into a number you can use in calculations and comparisons. Use it for numbers that arrive as text: form fields, API responses, CSV or Excel cells, email content.

Add the action

In the Process Designer toolbox, open Numerical and pick String To Number (or type String To Number in the search box).

The String To Number action properties: Text and Parsed number

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
TextInputTextYesText that holds only a number.
Parsed numberOutputNumber (whole or decimal)YesThe number. A whole number when the text has no decimals.

Example

TextParsed number
4242
3.143.14
-15-15
12 12 (spaces around are ignored)
1,234.51234.5
.50.5
1e31000
30000000003000000000
abcstep fails: Text can't be parsed to a number.
12abcstep fails: Text can't be parsed to a number.
(empty)step fails: Text can't be null or empty.

Good to know

  • Use a dot for decimals. A comma is read as a thousands separator, so 1,234.5 is 1234.5. A European-style 3,14 does not give 3.14; replace the comma with a dot first (for example with a text replace action).
  • The text must hold a number and nothing else: currency signs, units or words around it make the step fail. Extract the number first if needed.
  • When the text is not a number, the step fails; it does not return an empty value. To avoid stopping the process on bad input, check the text before you convert it.

On this page