Overview
The Number Block is used to output a constant number value or convert an input value into a number. It can also be configured to round the number to a specified number of decimal places.
Inputs
The value to be converted into a number. This input is only available if the “Use Value Input” setting is enabled. If the input cannot be converted to a number, the block will use the Value setting instead.
Outputs
The output number value. This can either be a constant value or a converted input value.
Editor Settings
The constant number value to be outputted. This value is used when either:
- The “Use Value Input” setting is disabled
- The “Use Value Input” setting is enabled but no input is connected
- The “Use Value Input” setting is enabled but the input cannot be converted to a number
When enabled, shows an input port that accepts any value and attempts to convert it to a number.
When enabled, rounds the output number to the specified number of decimal places.
The number of decimal places to round to when the “Round” setting is enabled.
Example: Output a constant number
- Add a Number Block to your flow.
- Set the
Valueto123.456. - Run the flow. The
valueoutput of the Number Block will be123.456.

Example: Convert a string to a number
- Add a Text Block to your flow and set the text to
"123.456". - Add a Number Block and enable the
Use Value Inputsetting. - Connect the Text Block to the
inputof the Number Block. - Run the flow. The
valueoutput of the Number Block will be123.456.

Example: Round a number
- Add a Number Block to your flow.
- Set the
Valueto123.456. - Enable the
Roundsetting and setRound Toto2. - Run the flow. The
valueoutput of the Number Block will be123.46.

Error Handling
The Number Block will not error under normal circumstances. If the input value cannot be converted to a number when “Use Value Input” is enabled, it will default to using the Value setting.FAQ
Can I use the Number Block to convert a boolean to a number?
Can I use the Number Block to convert a boolean to a number?
Yes, you can use the Number Block to convert a boolean to a number. A
true value will be converted to 1 and a false value will be converted to 0.What happens if I connect a non-numeric value to the Input of the Number Block?
What happens if I connect a non-numeric value to the Input of the Number Block?
The Number Block will attempt to convert the input value to a number. If the conversion is not possible, the block will default to using the Value setting.
Can I use the Number Block to round a number to an integer?
Can I use the Number Block to round a number to an integer?
Yes, you can use the Number Block to round a number to an integer by enabling the
Round setting and setting Round To to 0.

