Convert a string to a number type

更新时间:
复制 MD 格式

1. Component description

Note

Prerequisites: None

This component converts a string to a number type.

2. Inputs

Note

For more information about the inputs, see the help text for each input in the component panel of the application flow editor.

3. Outputs

Note

For more information about the outputs, see the help text for each output in the component panel of the application flow editor.

4. Component usage example

4.1. Configuration example

  1. For the target string, enter "123".

  2. Keep the default settings for the advanced options.

4.2. Example execution result

None

5. Example flow

Setup flow

  1. Use the Convert string to number type component to convert a string to a number.

  2. Use the Record log component. In the expression editor, enter the type() method to print the variable type from the previous component's output.

    image

image

Execution result

After the flow runs successfully, the type of the converted value is printed to the log panel, as shown in the following figure.